Write file from kernel land
问题 I would like to write into a log file from the kernel space. I can create, open & close file (/var/log/my_kern_module.log) but if I try to write something into, my module crash... So I know read/write file from kernel space is bad, but I must do it in this module. Do you have any suggestion to help me ? thx Here you can find the code who perform write on my kernel module. It code run into a thread (kthread) mutex_lock(&gl_mtx_writelog); printk(KERN_EMERG "Readed : %s\n", buffer); fd = filp