函数逻辑报告

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

函数名称:This function unregisters poll callbacks from the associated file* descriptor. Must be called with "mtx" held (or "epmutex" if called from* ep_free).

函数原型:static void ep_unregister_pollwait(struct eventpoll *ep, struct epitem *epi)

返回类型:void

参数:

类型参数名称
struct eventpoll *ep
struct epitem *epi
606  lsthead等于List containing poll wait queues
609  当非链表为空循环
610  pwq等于list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.(lsthead, structeppoll_entry, llink)
612  删除链表项
613  ep_remove_wait_queue(pwq)
614  kmem_cache_free(Slab cache used to allocate "struct eppoll_entry" , pwq)
调用者
名称描述
ep_removeRemoves a "struct epitem" from the eventpoll RB tree and deallocates* all the associated resources. Must be called with "mtx" held.
ep_free
ep_insertMust be called with "mtx" held.