smb2_set_ea(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… smb2_set_ea(9) β€” the kernel API manual, bestie edition ✨

okay so real talk, this page lives in section 9 of the Kernel API Manual and it's all about one little function that does A Big Job. buckle up πŸŽ€


🌸 NAME 🌸

smb2_set_ea β€” the handler for setting extended attributes using the set info command. that's it, that's the whole vibe. it sets EAs. it's giving "quietly essential" tbh πŸ¦‹


✨ SYNOPSIS ✨

int smb2_set_ea (struct smb2_ea_info *eabuf , unsigned int buf_len ,
       const struct path *path , bool get_write );

like, look at her. four params, returns an int. no cap, she's iconic πŸ‘‘


πŸ’– ARGUMENTS πŸ’–

  • eabuf β€” the set info command buffer. this is the actual payload, the main character of the whole operation 🫢
  • buf_len β€” the length of the set info command buffer. yes bestie, we need to know how much buffer we're buffering πŸ“
  • path β€” the dentry path for get ea. it's literally the path we're pointing at 🌈
  • get_write β€” get write access to a mount. so like, do we need write perms? this bool says yes or no, and honestly, it's serving gatekeeper πŸ’…

πŸŽ€ RETURN πŸŽ€

0 on success, otherwise error. that's the whole story β€” zero means slay, anything else means something went sideways 😭


πŸ”₯ SEE ALSO πŸ”₯

so many siblings, she's got a whole family tree, and ngl the list is LONG but we're not skipping a single one because every single one of them matters 🧚

Kernel file ./fs/smb/server/smb2pdu.c:

like I said. whole family. iykyk πŸ’€πŸ’œ

lowkey reminder bestie: that file path is ./fs/smb/server/smb2pdu.c and it's where all this lives. write it down, put it in your notes app, whatever, just don't lose it πŸ™ˆ

and that's the page!! shipped straight from ./fs/smb/server, dated October 2026, and yes, it's still smb2_set_ea(9) at the bottom because she's consistent like that πŸ’–β­πŸŽ€

πŸ“¦ where this page comes from