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:This function unregisters poll callbacks from the associated file* descriptor. Must be called with "mtx" held (or "epmutex" if called from* ep_free).

Proto:static void ep_unregister_pollwait(struct eventpoll *ep, struct epitem *epi)

Type:void

Parameter:

TypeParameterName
struct eventpoll *ep
struct epitem *epi
606  lsthead = List containing poll wait queues
609  When Not list_empty - tests whether a list is empty*@head: the list to test. cycle
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  deletes entry from list
613  ep_remove_wait_queue(pwq)
614  kmem_cache_free(Slab cache used to allocate "struct eppoll_entry" , pwq)
Caller
NameDescribe
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.