函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:userfaultfd_wake_function

函数原型:static int userfaultfd_wake_function(wait_queue_entry_t *wq, unsigned mode, int wake_flags, void *key)

返回类型:int

参数:

类型参数名称
wait_queue_entry_t *wq
unsignedmode
intwake_flags
void *key
109  range等于key
114  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)
115  ret等于0
117  start等于start
118  len等于len
119  如果lenstart大于addressstartlen小于等于address的值则转到:out
122  WRITE_ONCE(waken, true)
127  ret等于wake_up_state(private, mode)
128  如果ret
140  删除链表项并重新初始化
142  out :
143  返回:ret