/* syscall.c * * Simple system call to printk and return. Hard coded into the kernel. */ #include /* kernel work */ /* Prototypes */ asmlinkage void my_syscall(void); /* * My new system call */ asmlinkage void my_syscall(void) { /* The following messages appear in /var/log/syslog */ printk(KERN_ALERT "my_syscall: entering. \n"); printk(KERN_ALERT "my_syscall: leaving. \n"); }