search for: vring_poll

Displaying 2 results from an estimated 2 matches for "vring_poll".

2008 Apr 05
11
[PATCH RFC 1/5] vringfd syscall
...struct vring ring; + u16 mask; + u16 __user *last_used; + u16 last_avail; + + const struct vring_ops *ops; + void *ops_data; + + /* Waitqueue for poll() */ + wait_queue_head_t poll_wait; + + /* The mapped used ring. */ + struct vring_used *used; + struct page *used_page; +}; + +static unsigned int vring_poll(struct file *filp, + struct poll_table_struct *poll) +{ + struct vring_info *vr = filp->private_data; + int err; + unsigned int mask; + u16 used, last_used; + + /* Some uses of vrings require updating in user context. This + * is best done close to the caller, ie. here. */ + if (vr-&g...
2008 Apr 05
11
[PATCH RFC 1/5] vringfd syscall
...struct vring ring; + u16 mask; + u16 __user *last_used; + u16 last_avail; + + const struct vring_ops *ops; + void *ops_data; + + /* Waitqueue for poll() */ + wait_queue_head_t poll_wait; + + /* The mapped used ring. */ + struct vring_used *used; + struct page *used_page; +}; + +static unsigned int vring_poll(struct file *filp, + struct poll_table_struct *poll) +{ + struct vring_info *vr = filp->private_data; + int err; + unsigned int mask; + u16 used, last_used; + + /* Some uses of vrings require updating in user context. This + * is best done close to the caller, ie. here. */ + if (vr-&g...