patch-2.1.89 linux/include/linux/poll.h
Next file: linux/include/linux/route.h
Previous file: linux/include/linux/pci.h
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Fri Mar 6 21:02:48 1998
- Orig file:
v2.1.88/linux/include/linux/poll.h
- Orig date:
Fri Feb 6 15:33:19 1998
diff -u --recursive --new-file v2.1.88/linux/include/linux/poll.h linux/include/linux/poll.h
@@ -11,6 +11,7 @@
struct poll_table_entry {
+ struct file * filp;
struct wait_queue wait;
struct wait_queue ** wait_address;
};
@@ -22,7 +23,7 @@
#define __MAX_POLL_TABLE_ENTRIES (PAGE_SIZE / sizeof (struct poll_table_entry))
-extern inline void poll_wait(struct wait_queue ** wait_address, poll_table *p)
+extern inline void poll_wait(struct file * filp, struct wait_queue ** wait_address, poll_table *p)
{
struct poll_table_entry * entry;
@@ -31,6 +32,8 @@
if (p->nr >= __MAX_POLL_TABLE_ENTRIES)
return;
entry = p->entry + p->nr;
+ entry->filp = filp;
+ filp->f_count++;
entry->wait_address = wait_address;
entry->wait.task = current;
entry->wait.next = NULL;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov