create_xattr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this is create_xattr(9) from the Kernel API Manual β€” extended attributes are getting made and the vibe is immaculate. πŸ’–

🌸 NAME 🌸

create_xattr β€” create an extended attribute. periodt.

✨ SYNOPSIS ✨

int create_xattr (struct ubifs_info *c , struct inode *host , const
       struct fscrypt_name *nm , const void *value , int size );

πŸŽ€ ARGUMENTS πŸŽ€

  • c β€” UBIFS file-system description object.
  • host β€” host inode.
  • nm β€” extended attribute name.
  • value β€” extended attribute value.
  • size β€” size of extended attribute value.

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea: create_xattr() is a helper function that creates an extended attribute with name nm and value value for inode host. iconic behavior, honestly. πŸ’…

The host inode is also updated on flash, because the ctime and extended attribute accounting data changes. yes, on flash β€” the inode is catching these update hands too. 🫢

This function returns zero in case of success and a negative error code in case of failure. no cap. 😭

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./fs/ubifs/xattr.c and change_xattr(9). iykyk πŸ‘€

xoxo πŸ’‹ this page's source/version is ./fs/ubifs, the date is October 2026, and create_xattr(9) is signing off β€” bye bestie! πŸŽ€βœ¨

πŸ“¦ where this page comes from