Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Setup the structure that is used as key for the RB tree

Proto:static inline void ep_set_ffd(struct epoll_filefd *ffd, struct file *file, int fd)

Type:void

Parameter:

TypeParameterName
struct epoll_filefd *ffd
struct file *file
intfd
322  file = file
323  fd = fd
Caller
NameDescribe
ep_findSearch the file inside the eventpoll tree. The RB tree operations* are protected by the "mtx" mutex, and ep_find() must be called with* "mtx" held.
ep_insertMust be called with "mtx" held.