ksmbd_vfs_setxattr(9)
π ksmbd_vfs_setxattr(9) π
okay so this is a page straight out of the Kernel API Manual, and it's about ksmbd_vfs_setxattr β the little vfs helper that handles smb set extended attributes value for you. yes bestie, we're doing extended attributes today, and honestly? iconic of us. π
β¨ NAME β¨
ksmbd_vfs_setxattr β the vfs helper for smb set extended attributes value. it sets an xattr value, that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
int ksmbd_vfs_setxattr (struct mnt_idmap *idmap , const struct path
*path , const char *attr_name , void *attr_value , size_t attr_size ,
int flags , bool get_write );
like, look at all those parameters. seven of them. she's thorough and we respect it. π
β ARGUMENTS β
okay so here's the cast of characters, one by one, no skipping, periodt:
idmapβ the idmap of the relevant mount. the mapping situation, iykyk. πΊοΈpathβ path of dentry to set XATTR at. this is where the xattr goes, bestie.attr_nameβ xattr name forsetxattr. literally the name of the thing.attr_valueβ xattr value to set. the actual content, the main character of the operation. πattr_sizeβ size of xattr value. gotta know how big the vibe is. πflagsβ destination buffer length. yep, that's what the manpage says, we're reporting it faithfully. π«Άget_writeβ get write access to a mount. grab that write access, slay. βοΈ
π₯ RETURN π₯
0 on success, otherwise error. that's it, that's the whole return situation. zero means we ate and left no crumbs; anything else means something went sideways. π
ngl, always check the return value. 0 is your bestie, errors are not. π
π¦ SEE ALSO π¦
the kernel file ./fs/smb/server/vfs.c is where all these siblings live, so let's give them their moment:
ksmbd_vfs_create(9)ksmbd_vfs_mkdir(9)check_lock_range(9)ksmbd_vfs_read(9)ksmbd_vfs_write(9)ksmbd_vfs_getattr(9)ksmbd_vfs_fsync(9)ksmbd_vfs_remove_file(9)ksmbd_vfs_link(9)ksmbd_vfs_truncate(9)ksmbd_vfs_listxattr(9)ksmbd_vfs_getxattr(9)ksmbd_vfs_set_fadvise(9)ksmbd_vfs_empty_dir(9)ksmbd_vfs_lookup_in_dir(9)ksmbd_vfs_kern_path(9)ksmbd_vfs_kern_path_start_removing(9)ksmbd_vfs_init_kstat(9)
like, the whole friend group showed up. π
and that's a wrap, bestie! this iconic little page comes to you from ./fs/smb/server, dated October 2026, and it answers to the name ksmbd_vfs_setxattr(9). go set some xattrs, you absolute legend. πβ¨πΈ
π¦ 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