scsi_vpd_tpg_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… scsi_vpd_tpg_id πŸ’…

okay bestie, welcome to the Kernel API Manual page for scsi_vpd_tpg_id β€” yes it's a mouthful, yes you're gonna say it three times fast and get it wrong, and yes it's lowkey iconic πŸŽ€


✨ NAME ✨

scsi_vpd_tpg_id β€” return a target port group identifier πŸ‘‘

🌸 SYNOPSIS 🌸

int scsi_vpd_tpg_id (struct scsi_device *sdev , int *rel_id );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • sdev β€” the SCSI device. like, the whole reason we're here 🫢
  • rel_id β€” a pointer where the relative target port gets stashed if it's not NULL. so like, optional bestie, no pressure πŸ’…

πŸ’– DESCRIPTION πŸ’–

So what this does: it returns the Target Port Group identifier, pulled straight from the info living in VPD page 0x83 of the device. that's the vibe check ✨

And optionally β€” on success β€” it'll set rel_id to the relative target port. success only, okay? don't come for me if it didn't work 😭

πŸ”₯ RETURN πŸ”₯

It returns the identifier itself, or an error on failure. that's it. that's the tea πŸ’€

🌈 SEE ALSO 🌈

okay this list is long, so buckle up, we're going to the kernel's ./drivers/scsi/scsi_lib.c and meeting literally everyone πŸ“šπŸ’œ


fr fr, that's a lot of cross-references β€” but every single one is right there in the source, bestie 🫢

and that's the whole page!! mwah πŸ’‹

✧ο½₯゚: * this gem lives in ./drivers/scsi, dated October 2026, and it's serving Kernel API Manual energy all day long * :゚ο½₯✧ πŸ§šβ€β™€οΈβ­πŸ‘‘

πŸ“¦ where this page comes from