scsi_vpd_inquiry(9)
πΈ scsi_vpd_inquiry(9) πΈ
okay so welcome to the Kernel API Manual, bestie β this page is all about scsi_vpd_inquiry, and it's literally the βask the device for a VPD pageβ helper. π«Ά
β¨ NAME β¨
scsi_vpd_inquiry β request a device provide us with a VPD page. no cap, that's the whole vibe. π
π SYNOPSIS π
int scsi_vpd_inquiry (struct scsi_device *sdev , unsigned char *buffer ,
u8 page , unsigned len );
π¦ ARGUMENTS π¦
sdevβ the device to ask. like, your main character device. πbufferβ where to put the result. that's the lil landing spot. πpageβ which Vital Product Data to return. yes, the VPD page choice. β¨lenβ the length of the buffer. keep it accurate, bestie. π
π DESCRIPTION π
okay so real talk: this is an internal helper function. you probably want to use scsi_get_vpd_page instead β that's the one the docs are gently nudging you toward. π
it returns the size of the vpd page on success, or a negative error number. that's the whole return vibe. π₯
π SEE ALSO π
the Kernel file ./drivers/scsi/scsi.c is listed too, and here's the whole squad:
scsi_finish_command(9)scsi_change_queue_depth(9)scsi_track_queue_full(9)scsi_get_vpd_page(9)scsi_get_vpd_buf(9)scsi_attach_vpd(9)scsi_report_opcode(9)scsi_cdl_check(9)scsi_cdl_enable(9)scsi_device_get(9)scsi_device_put(9)starget_for_each_device(9)__starget_for_each_device(9)__scsi_device_lookup_by_target(9)scsi_device_lookup_by_target(9)__scsi_device_lookup(9)scsi_device_lookup(9)
mwah π β sign-off time: scsi_vpd_inquiry(9) says source/version is ./drivers/scsi, dated October 2026. slay, bye! π§
π¦ 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