scsi_vpd_inquiry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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:


mwah πŸ’‹ β€” sign-off time: scsi_vpd_inquiry(9) says source/version is ./drivers/scsi, dated October 2026. slay, bye! 🧚

πŸ“¦ where this page comes from