lsm_get_xattr_slot(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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