Re: [PROBLEM] sleeping function called from invalid context at mm/slab.c

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

 



On Sunday 10 June 2007 14:28, Lukas Razik wrote:

> Hi Tavi!
>
> I think I've understood you.
> In the future the hard_ximit_function won't create a socket. It will only
> send by the help of sock_sendmsg() through one which will be created
> before. BTW do you know if I can use sock_sendmsg() in interrupt context?
>

AFAIK you can't use sock_sendmsg from interrupt context either. You will have 
to deffer that operation too.

> Because this is only a test I'll try to work here with a kernel thread...

The recommended way to go (and the simpler way) is to use workqueues (unless 
you have reasons to use a kernel thread - like excessive sleeps or CPU 
usage).


> Regards and many thanks for your fast answer!

Glad I could help :)

tavi

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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