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

-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup

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

Reply via email to