kernfs_setattr(9)
hey bestie π welcome to kernfs_setattr(9), an actual page from the Kernel API Manual, and yes it's as iconic as it sounds β¨
πΈ NAME πΈ
kernfs_setattr β set iattr on a node π
like, that's the whole vibe. it sets iattr on a node. periodt π
β¨ SYNOPSIS β¨
int kernfs_setattr (struct kernfs_node *kn , const struct iattr *iattr
);
look at that signature, it's giving main character energy π
π ARGUMENTS π
knβ the target node π― the one you're doing this toiattrβ theiattrto set π¦ like, the actual thing going on the node
π¦ RETURN π¦
0on success π₯³ slay, it worked-errnoon failure π so if it goes wrong you get a negative errno, not a vibe
π SEE ALSO π
- Kernel file
./fs/kernfs/inode.cπ kernfs_get_inode(9)π
okay that's the whole page, no cap π«Ά this one lives under ./fs/kernfs, it's dated October 2026, and it's literally kernfs_setattr(9) β take care of her πβ¨π
π¦ 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