函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static inline int ep_events_available(struct eventpoll *ep)

返回类型:int

参数:

类型参数名称
struct eventpoll *ep
380  返回:非链表为空且不修改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
调用者
名称描述
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.