From: Alejandro Colomar Date: Mon, 10 May 2021 17:55:22 +0000 (+0200) Subject: kexec_load.2: Use syscall(SYS_...); for system calls without a wrapper X-Git-Tag: man-pages-5.12~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e59830eda91daaf0fa3f2ad7f09c8c66166948bc;p=thirdparty%2Fman-pages.git kexec_load.2: Use syscall(SYS_...); for system calls without a wrapper Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- diff --git a/man2/kexec_load.2 b/man2/kexec_load.2 index 62a3e2006a..74f1423558 100644 --- a/man2/kexec_load.2 +++ b/man2/kexec_load.2 @@ -29,18 +29,23 @@ kexec_load, kexec_file_load \- load a new kernel for later execution .SH SYNOPSIS .nf -.B #include +.BR "#include " " /* Definition of " KEXEC_* " constants */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #include .PP -.BI "long kexec_load(unsigned long " entry ", unsigned long " nr_segments , -.BI " struct kexec_segment *" segments , -.BI " unsigned long " flags ); -.BI "long kexec_file_load(int " kernel_fd ", int " initrd_fd , -.BI " unsigned long " cmdline_len ", const char *" cmdline , -.BI " unsigned long " flags ); +.BI "long syscall(SYS_kexec_load, unsigned long " entry , +.BI " unsigned long " nr_segments \ +", struct kexec_segment *" segments , +.BI " unsigned long " flags ); +.BI "long syscall(SYS_kexec_file_load, int " kernel_fd ", int " initrd_fd , +.BI " unsigned long " cmdline_len ", const char *" cmdline , +.BI " unsigned long " flags ); .fi .PP .IR Note : -There are no glibc wrappers for these system calls; see NOTES. +glibc provides no wrappers for these system calls, +necessitating the use of +.BR syscall (2). .SH DESCRIPTION The .BR kexec_load () @@ -332,9 +337,6 @@ The system call first appeared in Linux 3.17. .SH CONFORMING TO These system calls are Linux-specific. -.SH NOTES -Glibc does not provide a wrapper for these system calls; call them using -.BR syscall (2). .SH SEE ALSO .BR reboot (2), .BR syscall (2),