sysfs_remove_mount_point(9)
π sysfs_remove_mount_point(9) β from the Kernel API Manual, bestie β¨
okay so picture this: you're deep in the kernel, right, and there's this directory. it's always empty. it has always been empty. it will always be empty. and now it's gotta GO. that's this function, and honestly? she's an icon for it. π
πΈ NAME πΈ
sysfs_remove_mount_point β remove an always empty directory.
like, yes, that's the whole job. she removes the always-empty directory. no notes. periodt. π
β¨ SYNOPSIS β¨
void sysfs_remove_mount_point (struct kobject *parent_kobj , const char
*name );
that's it. two args. void return. she doesn't even give you a status code back β she just does it and leaves. main character energy fr fr π¦
π ARGUMENTS π
parent_kobjβ thekobjectthat will contain this always empty directory. think of her as the parent who's about to lose her (extremely empty) child πnameβ the name of the always empty directory to remove. yes bestie, you have to tell her which empty directory. she's good but she's not psychic π§
π₯ SEE ALSO π₯
- Kernel file
./fs/sysfs/dir.c sysfs_create_dir_ns(9)sysfs_remove_dir(9)sysfs_create_mount_point(9)
(psst β notice there's a sysfs_create_mount_point(9) over there? yeah. she's the undo button for this one. the way that the kernel just has matching sets of everything, iykyk π)
π lowkey reminder that this is the remove one β if you're out here calling the wrong sibling you're gonna have a bad time. double-check your function name bestie, no cap π
and that's the whole page! source/version is ./fs/sysfs, dated October 2026, and honestly? she ate. go forth and remove your always empty directories with confidence π«Άπππ·β
π¦ 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