Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ault_pending_wqh.lock must be hold by the caller

Proto:static inline struct userfaultfd_wait_queue *find_userfault_in(wait_queue_head_t *wqh)

Type:struct userfaultfd_wait_queue

Parameter:

TypeParameterName
wait_queue_head_t *wqh
952  lockdep_assert_held( & lock)
954  uwq = NULL
955  If Not waitqueue_active -- locklessly test for waiters on the queue*@wq_head: the waitqueue to test for waiters* returns true if the wait list is not empty* NOTE: this function is lockless and requires care, incorrect usage _will_ Then Go to out
958  wq = list_last_entry - get the last element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & head, typeof( * wq), entry)
959  uwq = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(wq, structuserfaultfd_wait_queue, wq)
960  out :
961  Return uwq
Caller
NameDescribe
find_userfault
find_userfault_evt