d_instantiate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« d_instantiate β€” the glow-up page πŸ’«

okay so bestie, welcome to the Kernel API Manual entry for d_instantiate(9) β€” yes the (9) is the section number, it's giving kernel-internals realness ✨


🌸 NAME 🌸

d_instantiate β€” fill in inode information for a dentry πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

void d_instantiate (struct dentry *entry , struct inode * inode );

πŸ’– ARGUMENTS πŸ’–

  • entry β€” the dentry you're completing, like the main character finally getting their full backstory 🫢
  • inode β€” the inode to attach to this dentry, the other half of the ship πŸ’œ

✨ DESCRIPTION ✨

So like, this function fills in the inode information in the entry. Literally its whole job. πŸŽ€

Every d_instantiate call turns a negative dentry into a productive full member of society β€” no cap, that's the actual wording and honestly? iconic. Negative dentries could never before this function showed up with a makeover montage moment πŸ’…πŸ”₯

NOTE! This assumes that the inode count has been incremented (or otherwise set) by the caller to indicate that it is now in use by the dcache. So like, if you call this without bumping that count, that's on you bestie 😭 the function is trusting you fr fr. Sort out the reference count before you hand it over, periodt. πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./fs/dcache.c β€” the whole squad lives here 🌈:


okay that's the whole page, go be a productive full member of society bestie πŸ§šπŸ’«

β€” lots of love from ./fs, October 2026, brought to you by d_instantiate(9) πŸ’–βœ¨

πŸ“¦ where this page comes from