Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\io_uring.c Create Date:2022-07-28 20:22:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:io_eventfd_register

Proto:static int io_eventfd_register(struct io_ring_ctx *ctx, void __user *arg)

Type:int

Parameter:

TypeParameterName
struct io_ring_ctx *ctx
void __user *arg
4906  __user * fds = arg
4909  If cq_ev_fd Then Return -EBUSY
4912  If copy_from_user( & fd, fds, size of fds ) Then Return -EFAULT
4915  cq_ev_fd = ventfd_ctx_fdget - Acquires a reference to the internal eventfd context.*@fd: [in] Eventfd file descriptor.* Returns a pointer to the internal eventfd context, otherwise the error* pointers returned by the following functions:* eventfd_fget
4916  If IS_ERR(cq_ev_fd) Then
4917  ret = PTR_ERR(cq_ev_fd)
4918  cq_ev_fd = NULL
4919  Return ret
4922  Return 0
Caller
NameDescribe
__io_uring_register