mirror of https://github.com/mkerrisk/man-pages
delete_module.2: SYNOPSIS: Fix prototype parameter types
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>
This commit is contained in:
parent
40c502d623
commit
7eee650211
|
@ -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 :
|
||||
|
|
Loading…
Reference in New Issue