A simple new system call in FreeBSD-11.0-RELEASE-amd64
问题 I am a newbie in FreeBSD. I installed FreeBSD-11.0-RELEASE-amd64 on VMware. I want to add first new system call. I find this link. I Did: cd /usr/src/sys/kern ee mykern.c #include <sys/sysproto.h> #include <sys/proc.h> #include <sys/types.h> #include <sys/systm.h> #ifndef _SYS_SYSPROTO_H_ struct myargs { int k; }; #endif int func(struct thread *p, struct myargs *uap) { printf("Hello"); return (0); } I added my system call to the end /kern/syscalls.master 550 AUE_NULL STD { int func(int k);}