/**************************************************** * * jondich.c * * 5/19/00, 11/3/05 Jeff Ondich * * Source for a hello-world system call. We need * linkage.h for asmlinkage and kernel for printk. * "asmlinkage" modifier, and kernel.h is * needed for printk. * ****************************************************/ #include #include asmlinkage int sys_jondich() { /* On the systems we're using in Nov 2005, printk * output goes to /var/log/messages. */ printk( "Jeff says 'hi' from inside the kernel\n" ); return 1; }