Re: Using vmalloc in device driver code

2013-04-05 Thread Mulyadi Santosa
On Fri, Apr 5, 2013 at 1:55 AM, neha naik nehanai...@gmail.com wrote: Hi All, From what i have learnt vmalloc requires a minor page fault to sync the process page tables with the reference page tables. So, is it safe to use memory already allocated by vmalloc in io context/device driver code

Re: Using vmalloc in device driver code

2013-04-05 Thread Arun KS
Hi Neha, On Fri, Apr 5, 2013 at 12:25 AM, neha naik nehanai...@gmail.com wrote: Hi All, From what i have learnt vmalloc requires a minor page fault to sync the process page tables with the reference page tables. So, is it safe to use memory already allocated by vmalloc in io context/device

Interrupt Handler of Ethernet Device

2013-04-05 Thread Robert Clove
Hello All, I am new here. I want to know the interrupt handler of the ethernet card and where can i find the definition of it so as i can clear the flow of packet reception. Thanks Robert ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: Interrupt Handler of Ethernet Device

2013-04-05 Thread Rami Rosen
Robert, You should look for the request_irq() method in the driver. This method registers an interrupt handler. For example, you can look in: http://lxr.free-electrons.com/source/drivers/net/ethernet/intel/e100.c ... ... if ((err = request_irq(nic-pdev-irq, e100_intr, IRQF_SHARED,

Re: Interrupt Handler of Ethernet Device

2013-04-05 Thread Robert Clove
Thanks for the link. I have another query too..should i ask right now? On Fri, Apr 5, 2013 at 5:36 PM, Rami Rosen roszenr...@gmail.com wrote: Robert, You should look for the request_irq() method in the driver. This method registers an interrupt handler. For example, you can look in:

Re: Interrupt Handler of Ethernet Device

2013-04-05 Thread Anuz Pratap Singh Tomar
On Fri, Apr 5, 2013 at 1:11 PM, Robert Clove cloverob...@gmail.com wrote: Thanks for the link. I have another query too..should i ask right now? If the question is relevant to current discussion, please ask here but if it just piggyback to totally different topic at hand make a new

Re: Using vmalloc in device driver code

2013-04-05 Thread neha naik
Hi Arun, I read that there is a minor page fault associated with vmalloc in following document : https://www.kernel.org/doc/gorman/html/understand/understand007.html That is why i am concerned that it may cause issues if trying to access memory in io context (when call returns from the