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

/linux-4.4.14/fs/
H A Duserfaultfd.c78 struct userfaultfd_wait_queue *uwq; userfaultfd_wake_function() local
81 uwq = container_of(wq, struct userfaultfd_wait_queue, wq); userfaultfd_wake_function()
86 if (len && (start > uwq->msg.arg.pagefault.address || userfaultfd_wake_function()
87 start + len <= uwq->msg.arg.pagefault.address)) userfaultfd_wake_function()
265 struct userfaultfd_wait_queue uwq; handle_userfault() local
333 init_waitqueue_func_entry(&uwq.wq, userfaultfd_wake_function); handle_userfault()
334 uwq.wq.private = current; handle_userfault()
335 uwq.msg = userfault_msg(address, flags, reason); handle_userfault()
336 uwq.ctx = ctx; handle_userfault()
343 * After the __add_wait_queue the uwq is visible to userland handle_userfault()
346 __add_wait_queue(&ctx->fault_pending_wqh, &uwq.wq); handle_userfault()
403 * and it's fine not to block on the spinlock. The uwq on this handle_userfault()
406 if (!list_empty_careful(&uwq.wq.task_list)) { handle_userfault()
409 * No need of list_del_init(), the uwq on the stack handle_userfault()
412 list_del(&uwq.wq.task_list); handle_userfault()
490 struct userfaultfd_wait_queue *uwq; find_userfault() local
494 uwq = NULL; find_userfault()
500 uwq = container_of(wq, struct userfaultfd_wait_queue, wq); find_userfault()
502 return uwq; find_userfault()
547 struct userfaultfd_wait_queue *uwq; userfaultfd_ctx_read() local
555 uwq = find_userfault(ctx); userfaultfd_ctx_read()
556 if (uwq) { userfaultfd_ctx_read()
567 * The fault_pending_wqh.lock prevents the uwq userfaultfd_ctx_read()
580 * handle_userfault(). The uwq->wq.task_list userfaultfd_ctx_read()
587 list_del(&uwq->wq.task_list); userfaultfd_ctx_read()
588 __add_wait_queue(&ctx->fault_wqh, &uwq->wq); userfaultfd_ctx_read()
593 *msg = uwq->msg; userfaultfd_ctx_read()
1204 struct userfaultfd_wait_queue *uwq; userfaultfd_show_fdinfo() local
1209 uwq = container_of(wq, struct userfaultfd_wait_queue, wq); userfaultfd_show_fdinfo()
1214 uwq = container_of(wq, struct userfaultfd_wait_queue, wq); userfaultfd_show_fdinfo()

Completed in 49 milliseconds