SSAM_VDEV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… SSAM_VDEV πŸ’…

okay so this is a page from the Kernel API Manual β€” yes, the kernel has its own manual, she's iconic like that β€” and today's main character is SSAM_VDEV, a macro that sets up a virtual device match id for you. bestie, let's get into it 🫢


✨ NAME ✨

SSAM_VDEV β€” Initialize a &struct ssam_device_id as virtual device with the given parameters. literally that's the whole job and she does it flawlessly πŸ’–


🌸 SYNOPSIS 🌸

SSAM_VDEV (cat , tid , iid , fun );

πŸŽ€ ARGUMENTS πŸŽ€

  • cat β€” the target category of the device 🐱 (no, not that kind of cat, it's a category, but slay)
  • tid β€” the target ID of the device
  • iid β€” the instance ID of the device
  • fun β€” the sub-function of the device ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

so what she does: initializes a struct ssam_device_id with the given parameters in the virtual domain. that's the vibe πŸ’«

if you wanna know the details on what these parameters actually mean, go look at struct ssam_device_uid β€” she has the lore.

now here's the cute part: you can pass these special values β€”

  • SSAM_SSH_TID_ANY
  • SSAM_SSH_IID_ANY
  • SSAM_SSH_FUN_ANY

β€” to say "matching should ignore target ID / instance ID / and-or sub-function, respectively" πŸ™ˆ like, don't even look at that field, we're not checking it, periodt.

and this macro also initializes the match_flags field based on the given parameters. she's doing extra credit and honestly? we love that for her πŸ‘‘


πŸ”₯ NOTE πŸ”₯

read this part carefully bestie, no skimming:

  • cat must be a valid u8 value.
  • tid, iid, and fun must be either valid u8 values or SSAM_SSH_TID_ANY, SSAM_SSH_IID_ANY, or SSAM_SSH_FUN_ANY, respectively.
other non-u8 values are not allowed. not "eh probably fine", not "she'll figure it out" β€” not allowed. fr fr πŸ’€

🌈 SEE ALSO 🌈

the whole friend group, in no particular order πŸ’œ:


and that's the page!! source is ./include/linux/surface_aggreg... and it's dated October 2026 β€” go read the rest of the docs bestie, ily, bye πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from