Re: create a kernel socket from interrupt context

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

 



On 2/23/07, Mark Ryden <markryde@xxxxxxxxx> wrote:
Hi Gaurav,
I had tried to use the workqueues but it fails;
what happens is that  queue_work() fails. (The return value from
queue_work()  is NOT 1 ).

the reason is probably that I MUST call the  queue_work() when I am in
a function which is in software interrupt context.
This is a requirement.
So is there a way to get out of it ?


Why don't you use schedule_work() instead? Are you creating a new
workqueue handler thread for your work? Do you really need it? Try
submitting it to the default workqueue handler "events"

Regards,

Rajat

--
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