kernfs_find_and_get_ns(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– kernfs_find_and_get_ns(9) β€” the Kernel API Manual, bestie edition πŸ’–

okay so welcome to kernfs_find_and_get_ns(9) in the Kernel API Manual β€” this is the page where we find a kernfs_node by name and grab a reference if it’s there. it’s giving search-and-get main character energy, no cap 🫢✨

🌸 NAME 🌸

kernfs_find_and_get_ns β€” find and get kernfs_node with the given name πŸ’…

✨ SYNOPSIS ✨

struct kernfs_node * kernfs_find_and_get_ns (struct kernfs_node *parent
, const char *name , const struct ns_common *ns );

πŸŽ€ ARGUMENTS πŸŽ€

  • parent β€” the kernfs_node to search under πŸ”
  • name β€” the name to look for 🏷️
  • ns β€” the namespace tag to use 🌈

πŸ’… DESCRIPTION πŸ’…

Look for the kernfs_node with name name under parent, and get a reference if found. lowkey iconic behavior, honestly πŸ¦‹

This function may sleep. 😴 so like, be aware of that vibe bestie.

πŸ‘‘ RETURN πŸ‘‘

Pointer to the found kernfs_node on success, NULL on failure. periodt πŸ’–

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./fs/kernfs/dir.c β€” and here’s the whole squad, fr fr:


that’s the whole page bestie β€” source/version is ./fs/kernfs, dated October 2026 πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from