Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:p_events_available - Checks if ready events might be available.*@ep: Pointer to the eventpoll context.* Returns: Returns a value different than zero if ready events are available,* or zero otherwise.

Proto:static inline int ep_events_available(struct eventpoll *ep)

Type:int

Parameter:

TypeParameterName
struct eventpoll *ep
380  Return Not list_empty_careful - tests whether a list is empty and not being modified*@head: the list to test* Description:* tests whether a list is empty _and_ checks that no other CPU might be* in the process of modifying either member (next or prev)* NOTE: using || READ_ONCE(* This is a single linked list that chains all the "struct epitem" that * happened while transferring ready events to userspace w/out * holding ->lock.) != EP_UNACTIVE_PTR
Caller
NameDescribe
ep_pollp_poll - Retrieves ready events, and delivers them to the caller supplied* event buffer.*@ep: Pointer to the eventpoll context.*@events: Pointer to the userspace buffer where the ready events should be* stored.