ata_scsiop_inq_80(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ata_scsiop_inq_80(9) β€” a whole vibe from the Kernel API Manual πŸŽ€

okay bestie, sit down, hydrate, and let me tell you about ata_scsiop_inq_80(9), which is genuinely one of the cutest little functions in the whole kernel API, no cap. it lives in the Kernel API Manual and it's basically the wingman that fakes a SCSI answer for you. πŸ’…


✨ NAME ✨

ata_scsiop_inq_80 β€” okay so what it does is simulate INQUIRY VPD page 80, device serial number. that's it, that's the whole job, and it does it flawlessly fr fr πŸ¦‹


🌸 SYNOPSIS 🌸

unsigned int ata_scsiop_inq_80 (struct ata_device *dev , struct
scsi_cmnd *cmd , u8 *rbuf );

look at her. three arguments, one unsigned int coming back at you. iconic behavior honestly πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” your target device, the main character of this whole operation. who we doing this for? her. πŸ’–
  • cmd β€” the SCSI command of interest, i.e. the one we're currently obsessed with. πŸ”₯
  • rbuf β€” the response buffer, and this is where the simulated SCSI cmd output gets sent. it's the group chat that receives the message, basically. πŸ“¨

πŸ¦‹ DESCRIPTION πŸ¦‹

Returns ATA device serial number. that's the whole plot. she hands you the serial number and she does not make a thing of it. lowkey humble of her. πŸ₯Ή

LOCKING: spin_lock_irqsave(host lock)

⚠️ bestie, note the locking situation before you go touching anything: it's spin_lock_irqsave(host lock). that's not a suggestion, that's the rule. πŸ’€

🌈 SEE ALSO 🌈

the Kernel file is right here, go peek: ./drivers/ata/libata-scsi.c β€” that's the source of truth, iykyk. 🫢

and now the extended friend group, and yes we are listing every single one of them because nobody gets left out of the credits:

that's the whole squad. every single one. slay. πŸ’œ


and that's the page, bestie! mwah πŸ’‹ this cutie came to you courtesy of ./drivers/ata, dated October 2026 β€” shoutout to the source, the version, and the date, periodt. πŸŒΈβœ¨πŸŽ€

πŸ“¦ where this page comes from