module_init not showing the printk that I want it to
问题 I am trying to make my module display a printk . I'm new to this so I might have some programming errors. This is my module C file: #include <linux/linkage.h> #include <linux/time.h> #include <linux/module.h> asmlinkage long sys_mycall(int myid, char* firstname) { printk ("Hello, %s! \n sys_mycall called from process %d with ID %d. \n", firstname, current->id, myid); return 0; } static int my_init(void) { return 0; } static int my_exit(void) { printk("Goodbye!"); return 0; } module_init(sys