bm_unlink(9)
π bm_unlink β like, the kernel API manual edition, bestie β¨
okay so real talk: this is bm_unlink(9) from the Kernel API Manual, and it's literally the page about yeeting a binary type handler through unlink(2). no cap, that's the whole vibe. π
πΈ SYNOPSIS πΈ
int bm_unlink (struct inode *dir , struct dentry *dentry );
that's it. that's the signature. copy it exactly, don't come for me. π
β¨ ARGUMENTS β¨
dirβ the inode of the root directory. yes, the root directory. she's in charge. πdentryβ the entry file to remove. this is the one getting unalived (affectionately). π¦
π DESCRIPTION π
so here's the tea, bestie: removing that entry file removes its binary type handler. periodt. it's exactly the same thing as writing -1 to it β same result, different font. π₯
lowkey important: the status and register control files can't be removed. like, at all. don't even try it. π
and the VFS calls this with the root inode lock held, which serializes it against the write-based add and remove paths. so it's all orderly and safe and nobody's stepping on anybody's toes β it's giving main character energy with a mutex. π
π SEE ALSO π
go stalk these next, iykyk:
- Kernel file
./fs/binfmt_misc.c struct binfmt_misc_flag(9)search_binfmt_handler(9)get_binfmt_handler(9)binfmt_misc_find_interp(9)entry_attach_interpreter(9)put_binfmt_handler(9)current_binfmt_misc(9)entry_select_interpreter(9)entry_invocation_flags(9)entry_open_interpreter(9)build_interp_argv(9)i_binfmt_misc(9)bm_evict_inode(9)unlink_binfmt_handler(9)remove_binfmt_handler(9)bm_entry_add_interp(9)
okay that's the whole page, you ate that π«Ά this one's from ./fs, dated October 2026, and it goes out to bm_unlink(9) β catch you in the next manpage, bestie ππ§
π¦ 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