Re: Writing to a file from kernel

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

 



On Fri, Jan 18, 2002 at 08:23:20PM +0000, Amit Kapoor wrote:

> Hi,
> 
>  I am having a weird problem writing to a file from the kernel.  At the 
> statement ' file->f_op->write(...)' the module just seems to hang.  Could 
> anyone tell me why this might be the case?  The code is pasted below.

why do you want to do this ? You really don't. If you need logging, then you
should either use printk() or one of the logging patches.

regards
john

p.s. your problem is probably related to KERNEL_DS, read the khttpd website
-- 
"You might have lived a good life as an exemplary Christian,
 only to be met at the gates of Heaven by Mohammed.
 That's called fate."
   - Neil Peart, drummer and lyricist from Rush
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[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