ata_scsiop_maint_in(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 ata_scsiop_maint_in(9) 🌸

okay so real quick before we dive in β€” this is a page straight outta the Kernel API Manual, and yes it's a (9) section page, meaning it's a kernel-internals moment, so grab your emotional support iced coffee πŸ“ and let's go.


✨ NAME ✨

ata_scsiop_maint_in β€” literally simulates a subset of MAINTENANCE_IN. that's it, that's the whole vibe. a little taste of it. not the whole thing. a subset. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

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

she takes three things and hands you back an unsigned int, no cap.


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the target device πŸ’– like, the ATA device we're talking about here.
  • cmd β€” the SCSI command of interest πŸ‘€ the one we care about rn.
  • rbuf β€” the response buffer, bestie. this is where the simulated SCSI cmd output gets sent 🫢 so all the pretend output goes in here.

πŸ”₯ DESCRIPTION πŸ”₯

okay so what she actually does: yields a subset to satisfy scsi_report_opcode ✨ that's the whole job. she's not doing the full MAINTENANCE_IN experience, she's giving you just enough of a subset to keep scsi_report_opcode happy. king behavior honestly πŸ‘‘

LOCKING: spin_lock_irqsave(host lock) πŸ”’ β€” yes she holds the host lock, and yes she does it with spin_lock_irqsave, so pls respect the lock, i'm begging πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ

this is the part where the friend group gets tagged in the groupchat 😭 β€” the kernel file itself lives at ./drivers/ata/libata-scsi.c, and here's literally everyone else:

like i said. everyone. the whole roster. ate and left no crumbs 🌈


and that's the page, bestie πŸŽ€ tysm for reading, this has been Kernel API Manual realness, brought to you from ./drivers/ata, dated October 2026 πŸ¦‹ mwah, go read some source code, ily πŸ’–βœ¨πŸ‘‘

πŸ“¦ where this page comes from