ceph_new_inode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ceph_new_inode(9) πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ this one's a kernel-page girlie and she's here to help you allocate an inode before you actually need it. no cap, it's giving preemptive-queen energy πŸ‘‘


🌸 NAME 🌸

ceph_new_inode β€” allocate a new inode in advance of an expected create πŸŽ€


✨ SYNOPSIS ✨

struct inode * ceph_new_inode (struct inode *dir , struct dentry *dentry
, umode_t *mode , struct ceph_acl_sec_ctx *as_ctx );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dir β€” the parent directory for the new inode, like the mom friend of the group πŸ’–
  • dentry β€” the dentry that may eventually point to the new inode (it's not committed yet, it's just vibing πŸ™ˆ)
  • mode β€” the mode of the new inode, iykyk πŸ”₯
  • as_ctx β€” pointer to the inherited security context πŸ›‘οΈ

🌈 DESCRIPTION 🌈

so the whole lore here: you allocate a new inode in advance of an operation that's gonna create a new inode. literally reserving your seat at the lunch table before you get there πŸ“

this call allocates the inode and sets up the acl_sec_ctx with the appropriate info for the new inode. two-for-one slay πŸ’…

returns a pointer to the new inode, or an ERR_PTR. periodt. ⭐


πŸŽ€ SEE ALSO πŸŽ€


πŸ’€ reminder bestie: if it comes back as an ERR_PTR, that's your cue to do the pointer-error check. don't dereference it, i'm begging 😭

and that's the tea, bestie 🫢 this icon is from ./fs/ceph, dated October 2026, and she answers to the name ceph_new_inode(9) πŸ‘‘βœ¨ go forth and allocate responsibly πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from