ep_loop_check(9)
NAME π
okay bestie, welcome to the ep_loop_check(9) page from the Kernel API Manual. this function performs a check to verify that adding an epoll file (@to) into another epoll file (represented by @ep) does not create closed loops or too deep chains. itβs giving βsafety inspector but make it kernel-core,β no cap. πβ¨
SYNOPSIS π
int ep_loop_check (struct ep_ctl_ctx *ctx , struct eventpoll *ep ,
struct eventpoll *to );
ARGUMENTS π¦
ctxβ Per-CTL_ADDscratch context. the little scratchpad this check gets to use. πepβ pointer to the epoll we are inserting into. thatβs the epoll on the receiving end of this operation. πtoβ pointer to the epoll to be inserted. thatβs the guest getting added in. π«Ά
RETURN πΈ
returns zero if adding the epoll to inside the epoll from does not violate the constraints, or -1 otherwise. so: zero = constraints are happy; -1 = nope, not today. πβ¨
SEE ALSO π₯
- Kernel file
./fs/eventpoll.c busy_loop_ep_timeout(9)reverse_path_check(9)ep_poll(9)ep_loop_check_proc(9)
mwah π this page is from source/version ./fs, dated October 2026, and yes the manual page is ep_loop_check(9). go forth and loop-check responsibly, bestie β periodt. π§ββοΈπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms