|
NAMESYSCALL_MODULE —
syscall kernel module declaration macro
SYNOPSIS#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/proc.h>
#include <sys/module.h>
#include <sys/sysent.h>
DESCRIPTIONTheSYSCALL_MODULE () macro declares a new syscall.
SYSCALL_MODULE () expands into a kernel module
declaration with name
‘sys/name ’.
The rest of the arguments expected by this macro are:
The syscall number assigned to the module can be retrieved using
the
modstat(3)
and
modfind(3)
library functions in libc. The MACRO
EXAMPLESA minimal example for a syscall module can be found in /usr/share/examples/kld/syscall/module/syscall.c.SEE ALSOmodule(9)/usr/share/examples/kld/syscall/module/syscall.c AUTHORSThis manual page was written by Alexander Langer <alex@FreeBSD.org>.
Visit the GSP FreeBSD Man Page Interface. |