create_xattr(9)
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
- 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