hi , my module produces some data (very cititcal) and that i want to log that to some disk residing file like log files. So among several ways like using syslog (and family) ,audit daemon i am not finding the way to use the functionalities of any of these subsystems .i mean : practically i am still unable to do that. can someone point me to some practical implementations used by some other modules or some practically sound articles to achieve this? thanks a lot in advance. -- ........................ *MOHIT VERMA*
---------- Forwarded message ---------- From: mohit verma <mohit89mlnc@gmail.com> Date: Mon, Jan 31, 2011 at 6:24 PM Subject: storing the logs To: kernelnewbies <kernelnewbies@nl.linux.org> hi , my module produces some data (very cititcal) and that i want to log that to some disk residing file like log files. So among several ways like using syslog (and family) ,audit daemon i am not finding the way to use the functionalities of any of these subsystems .i mean : practically i am still unable to do that. can someone point me to some practical implementations used by some other modules or some practically sound articles to achieve this? thanks a lot in advance. -- ........................ *MOHIT VERMA* -- ........................ *MOHIT VERMA*
hi , my module produces some data (very cititcal) and that i want to log that to some disk residing file like log files. So among several ways like using syslog (and family) ,audit daemon i am not finding the way to use the functionalities of any of these subsystems .i mean : practically i am still unable to do that. can someone point me to some practical implementations used by some other modules or some practically sound articles to achieve this? thanks a lot in advance. -- ........................ *MOHIT VERMA*
Are you sure you're doing it right ? Reading and writing files from within the kernel space is bad thing to do. Read this good article about that: http://www.linuxjournal.com/article/8110 <http://www.linuxjournal.com/article/8110>And if you want to do this anyway, there are some pieces of code too ;-) Mauro Romano Trajber On Mon, Jan 31, 2011 at 11:28 AM, mohit verma <mohit89mlnc@gmail.com> wrote:
hi ,
my module produces some data (very cititcal) and that i want to log that to some disk residing file like log files. So among several ways like using syslog (and family) ,audit daemon i am not finding the way to use the functionalities of any of these subsystems .i mean : practically i am still unable to do that.
can someone point me to some practical implementations used by some other modules or some practically sound articles to achieve this?
thanks a lot in advance.
-- ........................ *MOHIT VERMA*
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
On Mon, Jan 31, 2011 at 11:38:30PM -0200, Mauro Romano Trajber wrote:
Are you sure you're doing it right ? Reading and writing files from within the kernel space is bad thing to do. Read this good article about that: http://www.linuxjournal.com/article/8110 <http://www.linuxjournal.com/article/8110>And if you want to do this anyway, there are some pieces of code too ;-)
Yes, but you really don't want to do that. Seriously. Don't. Bad things will happen and no one will be able to help you. Use a "real" way to get data from the kernel to userspace (netlink, pseudo-filesystem, device node, etc.) good luck, greg k-h
participants (3)
-
Greg KH -
Mauro Romano Trajber -
mohit verma