spin_lock_irq_save and restore functions

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

 



Hello there,

My PCI device driver disables ethernet card IRQ upon loading and thus causing ethernet to fail to connect to Internet. This is on Fedora Core 5, 2.6.11 onwards. I have not checked any previous kernel versions. Most unfortunate is that the irq is not being shared by the devices. But, my driver implements SA_SHIRQ to enable sharing. Do you think using spin_lock_irq_save and restore functions be of any help? If so, where exactly do you think I should use them. Should it be used in the interrupt handler method or in the open method where I have request_irq? I read the interrupt handling chapter of device drivers 3rd edition. I could not find a real good explanation in there.

Can anyone please help?

Thanks,

Dinesh


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