d_instantiate(9)
π« 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 π:
d_drop(9)dentry_kill(9)__move_to_shrink_list(9)d_find_any_alias(9)d_find_alias(9)prune_dcache_sb(9)shrink_dcache_sb(9)enum d_walk_ret(9)d_walk(9)path_has_submounts(9)shrink_dcache_tree(9)d_invalidate(9)__d_alloc(9)d_alloc(9)d_alloc_pseudo(9)d_obtain_alias(9)d_obtain_root(9)d_add_ci(9)d_same_name(9)__d_lookup_rcu(9)d_lookup(9)__d_lookup(9)d_hash_and_lookup(9)d_delete(9)d_rehash(9)d_add(9)d_ancestor(9)d_splice_alias(9)is_subdir(9)
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
- 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