Hi All,

In my kernel module I am writing log messages to a text file by using
sys_open

eg. "sys_open(filename, O_WRONLY|O_RDONLY|O_APPEND|O_CREAT,00777)"

So I want to delete this file each time the module unloads. Is it
possible? I can't seem to find any resources online explaining this.

Now I can write the log messages to the textfile but how do I delete
it to prevent it from becoming too big.

Is there any code I must include under "void cleanup_module()" to
delete the file?

Thanks In Advance,
Perumal

To unsubscribe from this group, send email to 
linuxkernelnewbies+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to