Searched refs:ev_fd (Results 1 - 2 of 2) sorted by relevance

/linux-master/io_uring/
H A Dregister.c37 struct io_ev_fd *ev_fd; local
41 ev_fd = rcu_dereference_protected(ctx->io_ev_fd,
43 if (ev_fd)
49 ev_fd = kmalloc(sizeof(*ev_fd), GFP_KERNEL);
50 if (!ev_fd)
53 ev_fd->cq_ev_fd = eventfd_ctx_fdget(fd);
54 if (IS_ERR(ev_fd->cq_ev_fd)) {
55 int ret = PTR_ERR(ev_fd->cq_ev_fd);
56 kfree(ev_fd);
74 struct io_ev_fd *ev_fd; local
[all...]
H A Dio_uring.c544 struct io_ev_fd *ev_fd = container_of(rcu, struct io_ev_fd, rcu); local
545 int ops = atomic_xchg(&ev_fd->ops, 0);
548 eventfd_signal_mask(ev_fd->cq_ev_fd, EPOLL_URING_WAKE);
554 if (atomic_dec_and_test(&ev_fd->refs)) {
555 eventfd_ctx_put(ev_fd->cq_ev_fd);
556 kfree(ev_fd);
562 struct io_ev_fd *ev_fd = NULL; local
569 ev_fd = rcu_dereference(ctx->io_ev_fd);
572 * Check again if ev_fd exists incase an io_eventfd_unregister call
576 if (unlikely(!ev_fd))
[all...]

Completed in 111 milliseconds