atapi_cmd_type(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

atapi_cmd_type β€” Determine ATAPI command type from SCSI opcode.

okay so bestie, this is atapi_cmd_type(9) from the Kernel API Manual, and it is literally the vibe-checker for ATAPI command types. ✨


πŸŽ€ SYNOPSIS πŸŽ€

int atapi_cmd_type (u8 opcode );

That is the exact signature, no cap. πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • opcode β€” SCSI opcode. That is the one and only argument, bestie. 🫢

🌸 DESCRIPTION 🌸

Determine ATAPI command type from opcode. It is giving β€œlook at the opcode and tell me which ATAPI command type this is.” πŸ”₯

LOCKING: None. Zero locking drama here. πŸ’…


πŸ‘‘ RETURN πŸ‘‘

The return value is one of these, literally:

ATAPI_{READ|WRITE|READ_CD|PASS_THRU|MISC}


🌈 SEE ALSO 🌈

Kernel file: ./drivers/ata/libata-core.c

Here is the whole reference posse, every single one:


mwah πŸ’– that is the whole page, bestie. Source/version: ./drivers/ata. Date: October 2026. Page: atapi_cmd_type(9). Slay and goodbye. πŸŽ€βœ¨

πŸ“¦ where this page comes from