lsm_get_xattr_slot(9)
hiii bestie, welcome to lsm_get_xattr_slot(9) from the Kernel API Manual π this is a tiny kernel helper with main-character energy, and weβre gonna get through it together, fr fr.
β¨ NAME β¨
lsm_get_xattr_slot β return the next available slot and increment the index π
π«Ά SYNOPSIS π«Ά
struct xattr * lsm_get_xattr_slot (struct xattr *xattrs , int
*xattr_count );
πΈ ARGUMENTS πΈ
xattrsβ array storing LSM-provided xattrs π¦xattr_countβ number of already stored xattrs (updated) π
π¦ DESCRIPTION π¦
okay so you call this icon and it retrieves the first available slot in the xattrs array to fill with an xattr β and then it increments xattr_count. literally thatβs the whole job, and it ate π₯
π₯ RETURN π₯
if thereβs a slot, you get the slot to fill in xattrs β non-NULL, bestie. otherwise? NULL. thatβs it, no cap π
π§ SEE ALSO π§
- Kernel file
./include/linux/lsm_hooks.h struct lsm_id(9)struct lsm_info(9)
Source/version vibes: ./include/linux, date October 2026, page lsm_get_xattr_slot(9) β mwah, go slay those xattrs π
β¨
π¦ 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