eventfs_remove_dir(9)
π eventfs_remove_dir(9) β the Kernel API Manual girlie's edition π
okay so real talk, we're deep in the Kernel API Manual today bestie, and this one is a certified kernel-internals moment. no cap.
β¨ NAME β¨
eventfs_remove_dir β remove an eventfs dir or file from the list ποΈβ¨
like, it's the cleanup crew. it takes the thing off the list. that's the whole vibe.
πΈ SYNOPSIS πΈ
void eventfs_remove_dir (struct eventfs_inode *ei );
returns void, so no exit status to stress about, she just does the thing and dips π
π¦ ARGUMENTS π¦
eiβ theeventfs_inodethat's getting removed. this is the main character of the function ngl, everything happens to her π«Ά
π DESCRIPTION π
okay so here's the tea β β eventfs_remove_dir acquires the eventfs_mutex lock and then calls eventfs_remove_rec. that's it. that's the whole function. lock, then recurse-inated. π₯
lowkey obsessed with how short this description is β she said "minimalist" and she ATE π
π SEE ALSO π
sibling functions, the whole friend group fr fr π:
lookup_file(9)lookup_dir_entry(9)eventfs_d_release(9)lookup_file_dentry(9)eventfs_root_lookup(9)eventfs_create_dir(9)eventfs_create_events_dir(9)eventfs_remove_rec(9)eventfs_remove_events_dir(9)
all of these live in the kernel file ./fs/tracefs/event_inode.c β go say hi π§
π friendly reminder that this is the Kernel API Manual, so please don't go calling kernel internals from userspace, i'm begging π
and that's the page bestie!! β¨ source/version vibes: ./fs/tracefs, dated October 2026 β yes october 2026, she's from the future, we don't ask questions π°οΈπ«
π¦ 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