函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\userfaultfd.c Create Date:2022-07-29 10:52:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ault_pending_wqh.lock must be hold by the caller

函数原型:static inline struct userfaultfd_wait_queue *find_userfault_in(wait_queue_head_t *wqh)

返回类型:struct userfaultfd_wait_queue

参数:

类型参数名称
wait_queue_head_t *wqh
952  lockdep_assert_held( & lock)
954  uwq = NULL
955  如果非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_则转到: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  返回:uwq
调用者
名称描述
find_userfault
find_userfault_evt