|
NAMEsyscall_helper_register ,
syscall_helper_unregister —
kernel syscall registration routines
SYNOPSIS#include <sys/sysent.h>
int
int
INITIALIZER MACROSstruct syscall_helper_dataSYSCALL_INIT_HELPER (syscallname);
struct syscall_helper_data
COMPATIBILITY INITIALIZER MACROSstruct syscall_helper_dataSYSCALL_INIT_HELPER_COMPAT (syscallname);
struct syscall_helper_data
DESCRIPTIONThesyscall_helper_register () registers a system call.
This function takes the structure struct syscall_helper_data
sd, which specifies the parameters for syscall registration:
struct syscall_helper_data { struct sysent new_sysent; struct sysent old_sysent; int syscall_no; int registered; }; The only valid flag for the flags argument
to Before use, the structure must be initialized with one of the
For legacy syscall functions named without "sys_" prefixes, the "COMPAT" versions of the macros may be used. The only valid flag for the flags argument
to the "F" variants of the initializer macros is
The RETURN VALUESIf successful,syscall_helper_register () and
syscall_helper_unregister () will return 0. Otherwise,
they will return an error.
ERRORSThesyscall_helper_register () call will fail and the
syscall will not be registered if:
SEE ALSOSYSCALL_MODULE(9)
Visit the GSP FreeBSD Man Page Interface. |