diff mbox series

[v5,07/35] alloc_hugepages.2: Use syscall(SYS_...); for system calls without a wrapper

Message ID 20210404115847.78166-8-alx.manpages@gmail.com
State New
Headers show
Series None | expand

Commit Message

Alejandro Colomar April 4, 2021, 11:58 a.m. UTC
The page didn't specify includes, and the syscalls are extint, so
instead of adding incomplete information about includes, just
leave it without any includes.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man2/alloc_hugepages.2 | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Comments

Michael Kerrisk \(man-pages\) April 5, 2021, 11:22 a.m. UTC | #1
Hi ALex,

On 4/4/21 1:58 PM, Alejandro Colomar wrote:
> The page didn't specify includes, and the syscalls are extint, so
> instead of adding incomplete information about includes, just
> leave it without any includes.


Patch applied.

Thanks,

Michael


> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
> ---
>  man2/alloc_hugepages.2 | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/man2/alloc_hugepages.2 b/man2/alloc_hugepages.2
> index 07193c542..cc76fc495 100644
> --- a/man2/alloc_hugepages.2
> +++ b/man2/alloc_hugepages.2
> @@ -27,11 +27,12 @@
>  alloc_hugepages, free_hugepages \- allocate or free huge pages
>  .SH SYNOPSIS
>  .nf
> -.BI "void *alloc_hugepages(int " key ", void *" addr ", size_t " len ,
> -.BI "                      int " prot ", int " flag );
> +.BI "void *syscall(SYS_alloc_hugepages, int " key ", void *" addr \
> +", size_t " len ,
> +.BI "              int " prot ", int " flag );
>  .\" asmlinkage unsigned long sys_alloc_hugepages(int key, unsigned long addr,
>  .\" unsigned long len, int prot, int flag);
> -.BI "int free_hugepages(void *" addr );
> +.BI "int syscall(SYS_free_hugepages, void *" addr );
>  .\" asmlinkage int sys_free_hugepages(unsigned long addr);
>  .fi
>  .SH DESCRIPTION
>
diff mbox series

Patch

diff --git a/man2/alloc_hugepages.2 b/man2/alloc_hugepages.2
index 07193c542..cc76fc495 100644
--- a/man2/alloc_hugepages.2
+++ b/man2/alloc_hugepages.2
@@ -27,11 +27,12 @@ 
 alloc_hugepages, free_hugepages \- allocate or free huge pages
 .SH SYNOPSIS
 .nf
-.BI "void *alloc_hugepages(int " key ", void *" addr ", size_t " len ,
-.BI "                      int " prot ", int " flag );
+.BI "void *syscall(SYS_alloc_hugepages, int " key ", void *" addr \
+", size_t " len ,
+.BI "              int " prot ", int " flag );
 .\" asmlinkage unsigned long sys_alloc_hugepages(int key, unsigned long addr,
 .\" unsigned long len, int prot, int flag);
-.BI "int free_hugepages(void *" addr );
+.BI "int syscall(SYS_free_hugepages, void *" addr );
 .\" asmlinkage int sys_free_hugepages(unsigned long addr);
 .fi
 .SH DESCRIPTION