Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:userfaultfd_wake_function

Proto:static int userfaultfd_wake_function(wait_queue_entry_t *wq, unsigned mode, int wake_flags, void *key)

Type:int

Parameter:

TypeParameterName
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  If len && ( start > address || start + len <= address ) Then Go to out
122  WRITE_ONCE(waken, true)
127  ret = wake_up_state(private, mode)
128  If ret Then
140  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
142  out :
143  Return ret