]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
delete_module.2: SYNOPSIS: Fix prototype parameter types
authorAlejandro Colomar <alx.manpages@gmail.com>
Wed, 30 Dec 2020 21:41:43 +0000 (22:41 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 30 Dec 2020 22:35:35 +0000 (23:35 +0100)
The Linux kernel uses 'unsigned int' instead of 'int' for the
'flags' parameter.  As glibc provides no wrapper, use the same
type the kernel uses.

......

$ syscall='delete_module';
$ find linux/ -type f -name '*.c' \
  |xargs pcregrep -Mn "(?s)^[\w_]*SYSCALL_DEFINE.\(${syscall},.*?\)";
linux/kernel/module.c:977:
SYSCALL_DEFINE2(delete_module, const char __user *, name_user,
unsigned int, flags)

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/delete_module.2

index e63545d517f0a18cea44ce164a86f5d133dd98f5..1030e96986f0a21c780d411e72a58aa5d4ce43f1 100644 (file)
@@ -27,7 +27,7 @@
 delete_module \- unload a kernel module
 .SH SYNOPSIS
 .nf
-.BI "int delete_module(const char *" name ", int " flags );
+.BI "int delete_module(const char *" name ", unsigned int " flags );
 .fi
 .PP
 .IR Note :