scsi_vpd_lun_serial(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ scsi_vpd_lun_serial(9) πŸ¦‹

okay so bestie, welcome to the scsi_vpd_lun_serial(9) page from the Kernel API Manual β€” it’s giving tiny-helper-that-comes-through energy, and honestly? iconic. πŸ’–

🌸 NAME 🌸

scsi_vpd_lun_serial β€” return a unique device serial number.

✨ SYNOPSIS ✨

int scsi_vpd_lun_serial (struct scsi_device *sdev , char *sn , size_t
sn_size );

πŸŽ€ ARGUMENTS πŸŽ€

  • sdev β€” SCSI device.
  • sn β€” buffer for the serial number.
  • sn_size β€” size of the buffer.

πŸ’… DESCRIPTION πŸ’…

Copies the device serial number into sn based on the information in the VPD page 0x80 of the device. The string will be null terminated and have leading and trailing whitespace stripped.

Returns the length of the serial number or error on failure.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/scsi/scsi_lib.c plus this whole friend group:


bestie, that’s the whole page! source/version ./drivers/scsi, date October 2026, page scsi_vpd_lun_serial(9) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from