Re: logging data to a file.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/4/05, Bahadir Balban <bilgehan.balban@xxxxxxxxx> wrote:
> Hi,
>
> I want to log data, (mainly usb transactions) into a file from within
> the kernel. The code writing to the file may well be running in
> interrupt context, so it won't be associated with a process.

You really don't want to do file I/O from within the kernel.


> What is
> the best way to achieve this?

Get the data to userspace via printk/sysfs/netlink or some such, then
write the data to a file in userspace.


--
Jesper Juhl <jesper.juhl@xxxxxxxxx>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux