Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ep_create_wakeup_source

Proto:static int ep_create_wakeup_source(struct epitem *epi)

Type:int

Parameter:

TypeParameterName
struct epitem *epi
1440  If Not wakeup_source used when ep_scan_ready_list is running Then
1441  wakeup_source used when ep_scan_ready_list is running = wakeup_source_register(NULL, "eventpoll")
1442  If Not wakeup_source used when ep_scan_ready_list is running Then Return -ENOMEM
1446  name = name
1447  ws = wakeup_source_register(NULL, name)
1449  If Not ws Then Return -ENOMEM
1451  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(wakeup_source used when EPOLLWAKEUP is set , ws)
1453  Return 0
Caller
NameDescribe
ep_insertMust be called with "mtx" held.
ep_modifyModify the interest event mask by dropping an event if the new mask* has a match in the current file status. Must be called with "mtx" held.