search for: vring_release

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

2008 Apr 05
11
[PATCH RFC 1/5] vringfd syscall
...k; +} + +static ssize_t vring_write(struct file *filp, const char __user *buf, + size_t size, loff_t *off) +{ + struct vring_info *vr = filp->private_data; + + if (vr->ops && vr->ops->push) + return vr->ops->push(vr->ops_data); + + return -EINVAL; +} + +static int vring_release(struct inode *inode, struct file *filp) +{ + struct vring_info *vr = filp->private_data; + + /* Callback for other end. */ + if (vr->ops && vr->ops->destroy) + vr->ops->destroy(vr->ops_data); + + if (vr->used) { + kunmap(vr->used_page); + put_page(vr->used_p...
2008 Apr 05
11
[PATCH RFC 1/5] vringfd syscall
...k; +} + +static ssize_t vring_write(struct file *filp, const char __user *buf, + size_t size, loff_t *off) +{ + struct vring_info *vr = filp->private_data; + + if (vr->ops && vr->ops->push) + return vr->ops->push(vr->ops_data); + + return -EINVAL; +} + +static int vring_release(struct inode *inode, struct file *filp) +{ + struct vring_info *vr = filp->private_data; + + /* Callback for other end. */ + if (vr->ops && vr->ops->destroy) + vr->ops->destroy(vr->ops_data); + + if (vr->used) { + kunmap(vr->used_page); + put_page(vr->used_p...