scsi_vpd_tpg_id(9)
π 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 notNULL. 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 ππ
__scsi_queue_insert(9)scsi_queue_insert(9)scsi_failures_reset_retries(9)scsi_check_passthrough(9)scsi_execute_cmd(9)scsi_run_queue(9)scsi_result_to_blk_status(9)scsi_rq_err_bytes(9)scsi_io_completion(9)scsi_alloc_sgtables(9)scsi_initialize_rq(9)scsi_alloc_request(9)scsi_dispatch_cmd(9)scsi_get_internal_cmd(9)scsi_put_internal_cmd(9)scsi_device_from_queue(9)scsi_block_requests(9)scsi_unblock_requests(9)scsi_mode_select(9)scsi_mode_sense(9)scsi_test_unit_ready(9)scsi_device_set_state(9)scsi_evt_emit(9)scsi_evt_thread(9)sdev_evt_send(9)sdev_evt_alloc(9)sdev_evt_send_simple(9)scsi_device_quiesce(9)scsi_device_resume(9)scsi_internal_device_block_nowait(9)scsi_device_block(9)scsi_internal_device_unblock_nowait(9)scsi_internal_device_unblock(9)scsi_block_targets(9)scsi_host_block(9)scsi_kmap_atomic_sg(9)scsi_kunmap_atomic_sg(9)scsi_vpd_lun_id(9)scsi_vpd_lun_serial(9)scsi_build_sense(9)
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
- 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