generic_listxattr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– generic_listxattr(9) πŸ’–

okay bestie, welcome to the Kernel API Manual side of the group chat, where we make kernel helpers feel fetch. this page is all about generic_listxattr, and it is lowkey iconic in a β€œrun through a dentry’s xattr list() operations” kinda way. πŸ¦‹

✨ NAME ✨

generic_listxattr β€” run through a dentry's xattr list() operations. that’s the name, that’s the job, and it’s giving helper-function main character energy. πŸ’…

πŸ’« SYNOPSIS πŸ’«

ssize_t generic_listxattr (struct dentry *dentry , char *buffer , size_t
       buffer_size );

πŸŽ€ ARGUMENTS πŸŽ€

  • dentry β€” dentry to list the xattrs. this is the dentry we’re doing the list-y thing on, bestie. πŸŽ€
  • buffer β€” result buffer. it’s where the results go, like a little result bucket. ✨
  • buffer_size β€” size of buffer. yes, the size of that buffer. iconic. πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the vibe here is teamwork: this function combines the results of the list operation from every xattr_handler in the xattr_handler stack. literally every handler in the stack contributes, and generic_listxattr is the main character collecting the combined results. πŸ”₯

important note, bestie: this will not include the entries for POSIX ACLs. so don’t come for it about missing POSIX ACL entries β€” it said what it said. πŸ™ˆ

🌈 SEE ALSO 🌈

the Kernel file ./fs/xattr.c is like the mothership, and these are the linked besties you should also check out:


signing off from source corner ./fs with the October 2026 timestamp, your girl generic_listxattr(9) πŸ’…βœ¨

πŸ“¦ where this page comes from