kernfs_create_dir_ns(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

kernfs_create_dir_ns - create a directory ✨

okay bestie, welcome to the kernfs_create_dir_ns(9) manual page β€” this is the one about creating a directory in kernfs, and we are gonna get you all the way together, no cap 🫢

✨ SYNOPSIS ✨

struct kernfs_node * kernfs_create_dir_ns (struct kernfs_node *parent ,
const char *name , umode_t mode , kuid_t uid , kgid_t gid , void *priv ,
const struct ns_common *ns );

πŸŽ€ ARGUMENTS πŸŽ€

here’s the whole cast, bestie β€” every single one matters πŸ’…

  • parent β€” parent in which to create a new directory 🌱
  • name β€” name of the new directory 🏷️
  • mode β€” mode of the new directory πŸ”
  • uid β€” uid of the new directory πŸ‘€
  • gid β€” gid of the new directory πŸ‘₯
  • priv β€” opaque data associated with the new directory 🎁
  • ns β€” optional namespace tag of the directory 🧚

πŸ’… RETURN πŸ’…

the created node on success, ERR_PTR value on failure. periodt. πŸ’…βœ¨

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./fs/kernfs/dir.c β€” and the whole iconic crew πŸ‘‘


that’s the whole tea β˜• from ./fs/kernfs, dated October 2026, for kernfs_create_dir_ns(9) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from