gfs2_mkdir(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– gfs2_mkdir(9) β€” Kernel API Manual πŸ’–

okay so bestie, this is the gfs2_mkdir(9) page from the Kernel API Manual, and it's giving very specific main-character energy: Make a directory. That's the whole assignment. ✨


🌸 NAME 🌸

gfs2_mkdir β€” Make a directory πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

       struct dentry * gfs2_mkdir (struct mnt_idmap *idmap , struct inode *dir
       , struct dentry *dentry , umode_t mode );

πŸ’… ARGUMENTS πŸ’…

  • idmap β€” the idmap of the mount the inode was found from. yes, that exact one πŸ‘‘
  • dir β€” the parent directory of the new one. she's literally the parent, no cap 🫢
  • dentry β€” the dentry of the new directory. iconic little handle tbh πŸŽ€
  • mode β€” the mode of the new directory. set the vibe, bestie πŸ’…

⭐ RETURN ⭐

you get the dentry back, or ERR_PTR(errno) if it's not slaying 😭

🌈 SEE ALSO 🌈

the kernel file is ./fs/gfs2/inode.c, and the whole friend group is: gfs2_set_iop(9), gfs2_inode_lookup(9), gfs2_lookup_by_inum(9), gfs2_lookup_meta(9), gfs2_lookupi(9), create_ok(9), gfs2_init_xattr(9), init_dinode(9), gfs2_trans_da_blks(9), gfs2_create_inode(9), gfs2_create(9), __gfs2_lookup(9), gfs2_link(9), gfs2_unlink_inode(9), gfs2_unlink(9), gfs2_symlink(9), gfs2_mknod(9), gfs2_atomic_open(9), update_moved_ino(9), gfs2_rename(9), gfs2_exchange(9), gfs2_get_link(9), gfs2_permission(9), gfs2_setattr(9), gfs2_getattr(9). periodt. πŸ”₯


mwah πŸ’‹ this cutie came from ./fs/gfs2, dated October 2026, and it's gfs2_mkdir(9) β€” bye bestie 🫢

πŸ“¦ where this page comes from