---
name: "atapi_cmd_type"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/atapi_cmd_type"
---

# atapi\_cmd\_type(9)

Determine ATAPI command type from SCSI opcode

## NAME

atapi\_cmd\_type - Determine ATAPI command type from SCSI opcode

## SYNOPSIS

**int atapi\_cmd\_type(u8** *opcode***);**

## ARGUMENTS

*opcode*

SCSI opcode

## DESCRIPTION

Determine ATAPI command type from *opcode*.

LOCKING: None.

## RETURN

ATAPI\_{READ\|WRITE\|READ\_CD\|PASS\_THRU\|MISC}

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
