search for: atomic_us

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

Did you mean: atomic_use
2008 Apr 05
11
[PATCH RFC 1/5] vringfd syscall
...ndex. */ + wmb(); + vr->used->idx++; +} +EXPORT_SYMBOL_GPL(vring_used_buffer_atomic); + +void vring_wake(struct vring_info *vr) +{ + wake_up(&vr->poll_wait); +} +EXPORT_SYMBOL_GPL(vring_wake); + +struct vring_info *vring_attach(int fd, const struct vring_ops *ops, + void *data, bool atomic_use) +{ + struct file *filp; + struct vring_info *vr; + + /* Must be a valid fd, and must be one of ours. */ + filp = fget(fd); + if (!filp) { + vr = ERR_PTR(-EBADF); + goto out; + } + + if (filp->f_op != &vring_fops) { + vr = ERR_PTR(-EBADF); + goto fput; + } + + /* Mutex simply protects a...
2008 Apr 05
11
[PATCH RFC 1/5] vringfd syscall
...ndex. */ + wmb(); + vr->used->idx++; +} +EXPORT_SYMBOL_GPL(vring_used_buffer_atomic); + +void vring_wake(struct vring_info *vr) +{ + wake_up(&vr->poll_wait); +} +EXPORT_SYMBOL_GPL(vring_wake); + +struct vring_info *vring_attach(int fd, const struct vring_ops *ops, + void *data, bool atomic_use) +{ + struct file *filp; + struct vring_info *vr; + + /* Must be a valid fd, and must be one of ours. */ + filp = fget(fd); + if (!filp) { + vr = ERR_PTR(-EBADF); + goto out; + } + + if (filp->f_op != &vring_fops) { + vr = ERR_PTR(-EBADF); + goto fput; + } + + /* Mutex simply protects a...