kernfs_setattr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 to
  • iattr β€” the iattr to set πŸ¦‹ like, the actual thing going on the node

πŸ¦‹ RETURN πŸ¦‹

  • 0 on success πŸ₯³ slay, it worked
  • -errno on failure 😭 so if it goes wrong you get a negative errno, not a vibe

🌈 SEE ALSO 🌈


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