sysfs_remove_mount_point(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the kobject that 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 πŸ”₯

(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