函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static inline bool chain_epi_lockless(struct epitem *epi)

返回类型:bool

参数:

类型参数名称
struct epitem *epi
1156  ep等于The "container" of this item
1159  如果cmpxchg( & Works together "struct eventpoll"->ovflist in keeping the* single linked chain of items., EP_UNACTIVE_PTR, NULL)不等于EP_UNACTIVE_PTR则返回: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  返回:true
调用者
名称描述
ep_poll_callbackThis is the callback that is passed to the wait queue wakeup* mechanism