Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Chains a new epi entry to the tail of the ep->ovflist in a lockless way,* i.e. multiple CPUs are allowed to call this function concurrently.* Returns %false if epi element has been already chained, %true otherwise.

Proto:static inline bool chain_epi_lockless(struct epitem *epi)

Type:bool

Parameter:

TypeParameterName
struct epitem *epi
1156  ep = The "container" of this item
1159  If cmpxchg( & Works together "struct eventpoll"->ovflist in keeping the* single linked chain of items., EP_UNACTIVE_PTR, NULL) != EP_UNACTIVE_PTR Then Return false
1163  Works together "struct eventpoll"->ovflist in keeping the* single linked chain of items. = xchg( & * This is a single linked list that chains all the "struct epitem" that * happened while transferring ready events to userspace w/out * holding ->lock., epi)
1165  Return true
Caller
NameDescribe
ep_poll_callbackThis is the callback that is passed to the wait queue wakeup* mechanism