From: horseriver <horserivers@gmail.com>
To: Rami Rosen <roszenrami@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: what is the use of poll function int a net_device struct
Date: Tue, 15 Jan 2013 08:52:47 +0800 [thread overview]
Message-ID: <20130115005247.GB18654@debian.localdomain> (raw)
In-Reply-To: <CAKoUArmq0+aMdMyDvRu+fCJXynrqywpeJiajG=84YCxdFV-GKg@mail.gmail.com>
On Tue, Jan 15, 2013 at 03:20:39PM +0200, Rami Rosen wrote:
> Hi,
>
> On Mon, Jan 14, 2013 at 4:21 PM, horseriver <horserivers@gmail.com> wrote:
> > Where is the handler function defined for an netcard's IRQ
>
> look for the request_irq() method; you register the handler with this method.
>
> for example,
> in e1000e:
>
> http://lxr.free-electrons.com/source/drivers/net/ethernet/intel/e1000e/netdev.c
>
> err = request_irq(adapter->msix_entries[vector].vector,
> e1000_intr_msix_rx, 0,
> adapter->rx_ring->name,
> netdev);
>
> so the handler is e1000_intr_msix_rx().
>
> When an IRQ has reached, how to wake_up the wait_queue of the socket?
> TCP/UDP packet goes up from the driver to L3 and then to L4 (in case
> it is for this machine). In L4 you should find the
> wake_up of the wait_queue of the socket.
thanks!
In L4, wake_up should be fired by IRQ event.
where is the code for fire this callback ?
>
> Regards,
> Rami Rosen
> http://ramirose.wix.com/ramirosen
prev parent reply other threads:[~2013-01-16 4:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-14 14:21 what is the use of poll function int a net_device struct horseriver
2013-01-15 13:20 ` Rami Rosen
2013-01-15 0:52 ` horseriver [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130115005247.GB18654@debian.localdomain \
--to=horserivers@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=roszenrami@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox