Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\select.c Create Date:2022-07-28 20:07:01
Last Modify:2020-03-18 10:25:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Ok, Peter made a complicated, but straightforward multiple_wait() function

Proto:static void __pollwait(struct file *filp, wait_queue_head_t *wait_address, poll_table *p)

Type:void

Parameter:

TypeParameterName
struct file *filp
wait_queue_head_t *wait_address
poll_table *p
224  pwq = 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.(p, structpoll_wqueues, pt)
225  entry = poll_get_entry(pwq)
226  If Not entry Then Return
228  filp = get_file(filp)
229  wait_address = wait_address
230  key = _key
231  init_waitqueue_func_entry( & wait, pollwake)
232  private = pwq
233  add_wait_queue(wait_address, & wait)