[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: logging data to a file.
Hi,
Jesper Juhl wrote:
> Get the data to userspace via printk/sysfs/netlink or some such, then
> write the data to a file in userspace.
I don't think sysfs is designed to transfer data from the kernel to
userspace applications, it's dedicated to exporting attributes of
devices to userspace.
Concerning Netlink, as far as I know the number of communication
channels is limited, and one can create its own simply (that's why the
Netfilter guys introduced nf_netlink, which multiplexes the
Netfilter-reserved Netlink socket). Am I wrong ?
To transfer large amount of data from the kernel to user space, 2.6.14
introduced "relayfs" [1], primarly used by the Linux Trace Toolkit, but
that can be used for other purposes.
Sincerly,
Thomas
[1] http://www.opersys.com/relayfs/
--
Thomas Petazzoni
thomas.petazzoni@xxxxxxxx
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/