[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <50F433D1.6070809@infradead.org>
Date: Mon, 14 Jan 2013 08:35:29 -0800
From: Randy Dunlap <rdunlap@...radead.org>
To: horseriver <horserivers@...il.com>
CC: netdev@...r.kernel.org
Subject: Re: when and where does ep_poll_callback be called ?
On 01/13/13 17:11, horseriver wrote:
> hi:
>
>
> I'm studying the epoll module , I can not find ep_poll_callback be called somewhere .
It's right there in fs/eventpoll.c:
/*
* This is the callback that is used to add our wait queue to the
* target file wakeup lists.
*/
static void ep_ptable_queue_proc(struct file *file, wait_queue_head_t *whead,
poll_table *pt)
{
struct epitem *epi = ep_item_from_epqueue(pt);
struct eppoll_entry *pwq;
if (epi->nwait >= 0 && (pwq = kmem_cache_alloc(pwq_cache, GFP_KERNEL))) {
>>>>> init_waitqueue_func_entry(&pwq->wait, ep_poll_callback);
pwq->whead = whead;
pwq->base = epi;
add_wait_queue(whead, &pwq->wait);
list_add_tail(&pwq->llink, &epi->pwqlist);
epi->nwait++;
--
~Randy
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists