FireBall
asked on
Send live message to kernel modules
Hello ,
Is there any body know a way to send live message to kernel module like the given below. I want to send a message to it and let it write to logs the message
My message will be sended from the user space and the kernel module is working on kernel space
Is there any body know a way to send live message to kernel module like the given below. I want to send a message to it and let it write to logs the message
My message will be sended from the user space and the kernel module is working on kernel space
#include <linux/module.h> /* Needed by all modules */
#include <linux/kernel.h> /* Needed for KERN_INFO */
int init_module(void)
{
printk(KERN_INFO "Hello world 1.\n");
return 0;
}
void cleanup_module(void)
{
printk(KERN_INFO "Goodbye world 1.\n");
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You're welcome.
Good luck. Kernel + User Space communication == Big Adventure.
Good luck. Kernel + User Space communication == Big Adventure.
ASKER