Linux Kernel Threads : How to pass the Linux module write function as the function that the thread has to execute?
问题 I am developing Linux kernel module that communicate with user space program. This module waits for a message which is being sent from user space in order to print it in kernel mode. This is the module : #include <linux/init.h> #include <linux/module.h> #include <linux/fs.h> #include <linux/device.h> #include <linux/kernel.h> #include <linux/uaccess.h> MODULE_LICENSE("GPL"); MODULE_AUTHOR("Gaston"); MODULE_DESCRIPTION("A simple Linux char driver"); MODULE_VERSION("0.1"); #define MAX 256