• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/

Lines Matching refs:eventpoll

2  *  fs/eventpoll.c (Efficent event polling implementation)
31 #include <linux/eventpoll.h>
133 * Each file descriptor added to the eventpoll interface will
137 /* RB tree node used to link this structure to the eventpoll RB tree */
140 /* List header used to link this structure to the eventpoll ready list */
144 * Works together "struct eventpoll"->ovflist in keeping the
159 struct eventpoll *ep;
170 * structure and rapresent the main data sructure for the eventpoll
173 struct eventpoll {
370 static void ep_unregister_pollwait(struct eventpoll *ep, struct epitem *epi)
391 * Removes a "struct epitem" from the eventpoll RB tree and deallocates
394 static int ep_remove(struct eventpoll *ep, struct epitem *epi)
423 /* At this point it is safe to free the eventpoll item */
426 DNPRINTK(3, (KERN_INFO "[%p] eventpoll: ep_remove(%p, %p)\n",
432 static void ep_free(struct eventpoll *ep)
443 * eventpoll_release_file() while we're freeing the "struct eventpoll".
478 struct eventpoll *ep = file->private_data;
483 DNPRINTK(3, (KERN_INFO "[%p] eventpoll: close() ep=%p\n", current, ep));
491 struct eventpoll *ep = file->private_data;
505 /* File callbacks that implement the eventpoll file behaviour */
518 * This is called from eventpoll_release() to unlink files from the eventpoll
520 * closed without being removed from the eventpoll interface.
525 struct eventpoll *ep;
554 static int ep_alloc(struct eventpoll **pep)
556 struct eventpoll *ep = kzalloc(sizeof(*ep), GFP_KERNEL);
571 DNPRINTK(3, (KERN_INFO "[%p] eventpoll: ep_alloc() ep=%p\n",
577 * Search the file inside the eventpoll tree. The RB tree operations
581 static struct epitem *ep_find(struct eventpoll *ep, struct file *file, int fd)
602 DNPRINTK(3, (KERN_INFO "[%p] eventpoll: ep_find(%p) -> %p\n",
618 struct eventpoll *ep = epi->ep;
620 DNPRINTK(3, (KERN_INFO "[%p] eventpoll: poll_callback(%p) epi=%p ep=%p\n",
656 * Wake up ( if active ) both the eventpoll wait list and the ->poll()
698 static void ep_rbtree_insert(struct eventpoll *ep, struct epitem *epi)
720 static int ep_insert(struct eventpoll *ep, struct epoll_event *event,
795 DNPRINTK(3, (KERN_INFO "[%p] eventpoll: ep_insert(%p, %p, %d)\n",
823 static int ep_modify(struct eventpoll *ep, struct epitem *epi, struct epoll_event *event)
873 static int ep_send_events(struct eventpoll *ep, struct epoll_event __user *events,
978 * Wake up (if active) both the eventpoll wait list and the ->poll()
998 static int ep_poll(struct eventpoll *ep, struct epoll_event __user *events,
1069 * It opens an eventpoll file descriptor. The "size" parameter is there
1077 struct eventpoll *ep;
1081 DNPRINTK(3, (KERN_INFO "[%p] eventpoll: sys_epoll_create(%d)\n",
1086 * structure ( "struct eventpoll" ).
1093 * Creates all the items needed to setup an eventpoll file. That is,
1096 error = anon_inode_getfd(&fd, &inode, &file, "[eventpoll]",
1101 DNPRINTK(3, (KERN_INFO "[%p] eventpoll: sys_epoll_create(%d) = %d\n",
1109 DNPRINTK(3, (KERN_INFO "[%p] eventpoll: sys_epoll_create(%d) = %d\n",
1116 * the eventpoll file that enables the insertion/removal/change of
1124 struct eventpoll *ep;
1128 DNPRINTK(3, (KERN_INFO "[%p] eventpoll: sys_epoll_ctl(%d, %d, %d, %p)\n",
1136 /* Get the "struct file *" for the eventpoll file */
1154 * the user passed to us _is_ an eventpoll file. And also we do not permit
1207 DNPRINTK(3, (KERN_INFO "[%p] eventpoll: sys_epoll_ctl(%d, %d, %d, %p) = %d\n",
1214 * Implement the event wait interface for the eventpoll file. It is the kernel
1222 struct eventpoll *ep;
1224 DNPRINTK(3, (KERN_INFO "[%p] eventpoll: sys_epoll_wait(%d, %p, %d, %d)\n",
1237 /* Get the "struct file *" for the eventpoll file */
1245 * the user passed to us _is_ an eventpoll file.
1263 DNPRINTK(3, (KERN_INFO "[%p] eventpoll: sys_epoll_wait(%d, %p, %d, %d) = %d\n",
1272 * Implement the event wait interface for the eventpoll file. It is the kernel