kernfs_unlink_open_file(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, welcome to kernfs_unlink_open_file(9) from the Kernel API Manual β€” section 9, the cutest little corner of kernel docs πŸ’–

kernfs_unlink_open_file β€” Unlink @of from @kn. ✨


✨ SYNOPSIS ✨

void kernfs_unlink_open_file (struct kernfs_node *kn , struct kernfs_open_file *of , bool open_failed );

πŸ’… ARGUMENTS πŸ’…

  • kn β€” target kernfs_node πŸ‘‘
  • of β€” associated kernfs_open_file πŸŽ€
  • open_failed β€” ->open failed, cancel ->release πŸ’€

πŸ¦‹ DESCRIPTION πŸ¦‹

Unlink of from the list of kn's associated open files. If the list of associated open files becomes empty, disassociate and free kernfs_open_node. periodt πŸ’…

LOCKING: None. β€” no locks, zero, zip, none, not a single one 🫢


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./fs/kernfs/file.c, plus of_on(9), kernfs_deref_open_node_locked(9), kernfs_get_open_node(9), kernfs_notify(9), and __kernfs_create_file(9) 🌈


xoxo, your kernel bestie πŸ’‹ β€” source/version ./fs/kernfs, dated October 2026. πŸ¦‹βœ¨

πŸ“¦ where this page comes from