path_from_stashed(9)
β¨ path_from_stashed(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for path_from_stashed(9) β yes that's the real title, no cap, we're doing a whole manpage together and it's gonna be iconic π
πΈ NAME πΈ
path_from_stashed β create path from stashed or new dentry
π¦ SYNOPSIS π¦
int path_from_stashed (struct dentry **stashed , struct vfsmount *mnt ,
void *data , struct path *path );
π ARGUMENTS π
stashedβ where to retrieve or stash dentry (it's giving both directions, she does it all π«Ά)mntβ mnt of the filesystems to usedataβ data to store ininode->i_privatepathβ path to create
π DESCRIPTION π
So here's the tea β β the function tries to retrieve a stashed dentry from stashed. If the dentry is still valid then it will be reused. Slay, no wasted work π
But if the dentry isn't able? (yes, that's the original phrasing bestie, she said what she said) then the function will allocate a new dentry and inode. Then β and this is the cute part β it will check again whether it can reuse an existing dentry in case one has been added in the meantime, or update stashed with the newly added dentry. Look at her double-checking, main character energy honestly π
Special-purpose helper for nsfs and pidfs. That's it, that's her whole job, and she ate π₯
β RETURN β
On success zero π and on failure a negative error is returned π
ngl bestie, always check the return value β a negative number means something went sideways and you don't wanna find out later π
π SEE ALSO π
Kernel file ./fs/libfs.c β and here's the whole squad, all of them, nobody left behind π«Ά:
simple_offset_init(9)simple_offset_add(9)simple_offset_remove(9)simple_offset_rename(9)simple_offset_rename_exchange(9)simple_offset_destroy(9)offset_dir_llseek(9)offset_readdir(9)simple_rename_timestamp(9)simple_setattr(9)simple_write_end(9)simple_read_from_buffer(9)simple_write_to_buffer(9)memory_read_from_buffer(9)generic_encode_ino32_fh(9)generic_fh_to_dentry(9)generic_fh_to_parent(9)simple_fsync_noflush(9)simple_fsync(9)generic_check_addressable(9)simple_get_link(9)generic_ci_d_compare(9)generic_ci_d_hash(9)generic_ci_match(9)generic_set_sb_d_ops(9)inode_maybe_inc_iversion(9)inode_query_iversion(9)simple_inode_init_ts(9)simple_start_creating(9)
and that's the page!! π§ source/version is ./fs, dated October 2026, and the page itself is path_from_stashed(9) β mwah, go read the kernel, ily, bye bestie ππ
π¦ 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