Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:p_loop_check_proc - Callback function to be passed to the @ep_call_nested()* API, to verify that adding an epoll file inside another* epoll structure, does not violate the constraints, in* terms of closed loops, or too deep chains (which can

Proto:static int ep_loop_check_proc(void *priv, void *cookie, int call_nests)

Type:int

Parameter:

TypeParameterName
void *priv
void *cookie
intcall_nests
1938  error = 0
1939  file = priv
1940  ep = needed for tty driver, and maybe others
1945  mutex_lock_nested( & * This mutex is used to ensure that files are not removed * while epoll is using them. This is held during the event * collection loop, the file cleanup path, the epoll file exit * code and the ctl operations., call_nests + 1)
1946  used to optimize loop detection check = 1
1947  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
1948  When rbp cycle
1949  epi = rb_entry(rbp, structepitem, rbn)
1957  If error != 0 Then Break
1959  Else
1973  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
1975  Return error