ceph_new_inode(9)
π 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 π
- Kernel file
./fs/ceph/inode.c ceph_get_inode(9)
π 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms