Re: working files from Interupt routine

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

 



On Thu, Jan 17, 2008 at 05:49:32PM +0530, Kathiresan, Lekshmanan wrote:
> Hi All,
> 
>       I have written code to create ordinary file from Linux kernel
> module. This code is working fine in normal execution, but its hangs
> when this function called from hook function or ISR.

You are probably not in process context, so you can't access the
filesystem.

> Please advice me, what should I do to solve this problem.

You should not write files from the kernel in the first place. See
http://kernelnewbies.org/FAQ/WhyWritingFilesFromKernelIsBad for reasons
and solutions.


Erik

-- 
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery

Attachment: signature.asc
Description: Digital signature


[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