/* This file implements a demonstration syscall for an OS course. It * takes no arguments and prints out a simple message to the kernel * log, indicating that it was called. */ #include #include #include #include //Define a system call implementation that takes no arguments SYSCALL_DEFINE0( noargs ){ // print out a simple message indicating the function was called, and return SUCCESS printk("Someone invoked the sys_noargs system call"); return 0; } //End of file