# ioctl conventions

---

# IOCTLs

_Peios Kernel / Userspace interfaces / System and device interfaces / ioctl conventions_

> Reference for IOCTLs.

<a id="rst-ioctls"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

- [Ioctl Numbers](</kernel/userspace/userspace-api/ioctl/ioctl-number.md>)
- [Decoding an IOCTL Magic Number](</kernel/userspace/userspace-api/ioctl/ioctl-decoding.md>)
- [Summary of CDROM ioctl calls](</kernel/userspace/userspace-api/ioctl/cdrom.md>)
- [Summary of HDIO\_ ioctl calls](</kernel/userspace/userspace-api/ioctl/hdio.md>)

---

# Summary of CDROM ioctl calls

_Peios Kernel / Userspace interfaces / System and device interfaces / ioctl conventions_

> Edward A. Falk <efalk@google.com>

> **Peios:** Linux capability names in this interface retain their API meaning, but KACS evaluates them through native token privileges or compatibility rules. UID 0, `setcap` and Unix mode bits do not independently grant native authority. Object access and PIP checks remain additional constraints where applicable. See [Peios kernel behaviour](</kernel/introduction/peios-behaviour.md>) for the mapping and exceptions.


<a id="rst-summary-of-cdrom-ioctl-calls"></a>

- Edward A. Falk &lt;[efalk@google.com](<mailto:efalk@google.com>)&gt;

November, 2004

This document attempts to describe the ioctl(2) calls supported by the CDROM layer.  These are by-and-large implemented (as of Linux 2.6) in drivers/cdrom/cdrom.c and drivers/block/scsi_ioctl.c

ioctl values are listed in &lt;linux/cdrom.h&gt;.  As of this writing, they are as follows:

>
> <table>
> <tbody>
> <tr>
> <td>
>
>
> CDROMPAUSE
>
> </td>
> <td>
>
>
> Pause Audio Operation
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMRESUME
>
> </td>
> <td>
>
>
> Resume paused Audio Operation
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMPLAYMSF
>
> </td>
> <td>
>
>
> Play Audio MSF (struct cdrom_msf)
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMPLAYTRKIND
>
> </td>
> <td>
>
>
> Play Audio Track/index (struct cdrom_ti)
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMREADTOCHDR
>
> </td>
> <td>
>
>
> Read TOC header (struct cdrom_tochdr)
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMREADTOCENTRY
>
> </td>
> <td>
>
>
> Read TOC entry (struct cdrom_tocentry)
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMSTOP
>
> </td>
> <td>
>
>
> Stop the cdrom drive
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMSTART
>
> </td>
> <td>
>
>
> Start the cdrom drive
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMEJECT
>
> </td>
> <td>
>
>
> Ejects the cdrom media
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMVOLCTRL
>
> </td>
> <td>
>
>
> Control output volume (struct cdrom_volctrl)
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMSUBCHNL
>
> </td>
> <td>
>
>
> Read subchannel data (struct cdrom_subchnl)
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMREADMODE2
>
> </td>
> <td>
>
>
> Read CDROM mode 2 data (2336 Bytes) (struct cdrom_read)
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMREADMODE1
>
> </td>
> <td>
>
>
> Read CDROM mode 1 data (2048 Bytes) (struct cdrom_read)
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMREADAUDIO
>
> </td>
> <td>
>
>
> (struct cdrom_read_audio)
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMEJECT_SW
>
> </td>
> <td>
>
>
> enable(1)/disable(0) auto-ejecting
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMMULTISESSION
>
> </td>
> <td>
>
>
> Obtain the start-of-last-session address of multi session disks (struct cdrom_multisession)
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROM_GET_MCN
>
> </td>
> <td>
>
>
> Obtain the "Universal Product Code" if available (struct cdrom_mcn)
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROM_GET_UPC
>
> </td>
> <td>
>
>
> Deprecated, use CDROM_GET_MCN instead.
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMRESET
>
> </td>
> <td>
>
>
> hard-reset the drive
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMVOLREAD
>
> </td>
> <td>
>
>
> Get the drive's volume setting (struct cdrom_volctrl)
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMREADRAW
>
> </td>
> <td>
>
>
> read data in raw mode (2352 Bytes) (struct cdrom_read)
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMREADCOOKED
>
> </td>
> <td>
>
>
> read data in cooked mode
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMSEEK
>
> </td>
> <td>
>
>
> seek msf address
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMPLAYBLK
>
> </td>
> <td>
>
>
> scsi-cd only, (struct cdrom_blk)
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMREADALL
>
> </td>
> <td>
>
>
> read all 2646 bytes
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMGETSPINDOWN
>
> </td>
> <td>
>
>
> return 4-bit spindown value
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMSETSPINDOWN
>
> </td>
> <td>
>
>
> set 4-bit spindown value
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMCLOSETRAY
>
> </td>
> <td>
>
>
> pendant of CDROMEJECT
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROM_SET_OPTIONS
>
> </td>
> <td>
>
>
> Set behavior options
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROM_CLEAR_OPTIONS
>
> </td>
> <td>
>
>
> Clear behavior options
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROM_SELECT_SPEED
>
> </td>
> <td>
>
>
> Set the CD-ROM speed
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROM_SELECT_DISC
>
> </td>
> <td>
>
>
> Select disc (for juke-boxes)
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROM_MEDIA_CHANGED
>
> </td>
> <td>
>
>
> Check is media changed
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROM_TIMED_MEDIA_CHANGE
>
> </td>
> <td>
>
>
> Check if media changed since given time (struct cdrom_timed_media_change_info)
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROM_DRIVE_STATUS
>
> </td>
> <td>
>
>
> Get tray position, etc.
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROM_DISC_STATUS
>
> </td>
> <td>
>
>
> Get disc type, etc.
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROM_CHANGER_NSLOTS
>
> </td>
> <td>
>
>
> Get number of slots
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROM_LOCKDOOR
>
> </td>
> <td>
>
>
> lock or unlock door
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROM_DEBUG
>
> </td>
> <td>
>
>
> Turn debug messages on/off
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROM_GET_CAPABILITY
>
> </td>
> <td>
>
>
> get capabilities
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROMAUDIOBUFSIZ
>
> </td>
> <td>
>
>
> set the audio buffer size
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> DVD_READ_STRUCT
>
> </td>
> <td>
>
>
> Read structure
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> DVD_WRITE_STRUCT
>
> </td>
> <td>
>
>
> Write structure
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> DVD_AUTH
>
> </td>
> <td>
>
>
> Authentication
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROM_SEND_PACKET
>
> </td>
> <td>
>
>
> send a packet to the drive
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROM_NEXT_WRITABLE
>
> </td>
> <td>
>
>
> get next writable block
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> CDROM_LAST_WRITTEN
>
> </td>
> <td>
>
>
> get last block written on disc
>
> </td>
> </tr>
> </tbody>
> </table>

The information that follows was determined from reading kernel source code.  It is likely that some corrections will be made over time.

---

General:

> Unless otherwise specified, all ioctl calls return 0 on success and -1 with errno set to an appropriate value on error.  (Some ioctls return non-negative data values.)
>
> Unless otherwise specified, all ioctl calls return -1 and set errno to EFAULT on a failed attempt to copy data to or from user address space.
>
> Individual drivers may return error codes not listed here.
>
> Unless otherwise specified, all data structures and constants are defined in &lt;linux/cdrom.h&gt;

---

- **CDROMPAUSE**

  Pause Audio Operation

  usage:



  ```text
  ioctl(fd, CDROMPAUSE, 0);
  ```

  - **inputs:**

    none

  - **outputs:**

    none

  - **error return:**

    - ENOSYS      cd drive not audio-capable.

- **CDROMRESUME**

  Resume paused Audio Operation

  usage:



  ```text
  ioctl(fd, CDROMRESUME, 0);
  ```

  - **inputs:**

    none

  - **outputs:**

    none

  - **error return:**

    - ENOSYS      cd drive not audio-capable.

- **CDROMPLAYMSF**

  Play Audio MSF

  (struct cdrom_msf)

  usage:



  ```text
  struct cdrom_msf msf;

  ioctl(fd, CDROMPLAYMSF, &msf);
  ```

  - **inputs:**

    cdrom_msf structure, describing a segment of music to play

  - **outputs:**

    none

  - **error return:**

    - ENOSYS      cd drive not audio-capable.

  - **notes:**

    - MSF stands for minutes-seconds-frames

    - LBA stands for logical block address

    - Segment is described as start and end times, where each time is described as minutes:seconds:frames. A frame is 1/75 of a second.

- **CDROMPLAYTRKIND**

  Play Audio Track/index

  (struct cdrom_ti)

  usage:



  ```text
  struct cdrom_ti ti;

  ioctl(fd, CDROMPLAYTRKIND, &ti);
  ```

  - **inputs:**

    cdrom_ti structure, describing a segment of music to play

  - **outputs:**

    none

  - **error return:**

    - ENOSYS      cd drive not audio-capable.

  - **notes:**

    - Segment is described as start and end times, where each time is described as a track and an index.

- **CDROMREADTOCHDR**

  Read TOC header

  (struct cdrom_tochdr)

  usage:



  ```text
  cdrom_tochdr header;

  ioctl(fd, CDROMREADTOCHDR, &header);
  ```

  - **inputs:**

    cdrom_tochdr structure

  - **outputs:**

    cdrom_tochdr structure

  - **error return:**

    - ENOSYS      cd drive not audio-capable.

- **CDROMREADTOCENTRY**

  Read TOC entry

  (struct cdrom_tocentry)

  usage:



  ```text
  struct cdrom_tocentry entry;

  ioctl(fd, CDROMREADTOCENTRY, &entry);
  ```

  - **inputs:**

    cdrom_tocentry structure

  - **outputs:**

    cdrom_tocentry structure

  - **error return:**

    - ENOSYS      cd drive not audio-capable.

    - EINVAL      entry.cdte_format not CDROM_MSF or CDROM_LBA

    - EINVAL      requested track out of bounds

    - EIO         I/O error reading TOC

  - **notes:**

    - TOC stands for Table Of Contents

    - MSF stands for minutes-seconds-frames

    - LBA stands for logical block address

- **CDROMSTOP**

  Stop the cdrom drive

  usage:



  ```text
  ioctl(fd, CDROMSTOP, 0);
  ```

  - **inputs:**

    none

  - **outputs:**

    none

  - **error return:**

    - ENOSYS      cd drive not audio-capable.

  - **notes:**

    - Exact interpretation of this ioctl depends on the device, but most seem to spin the drive down.

- **CDROMSTART**

  Start the cdrom drive

  usage:



  ```text
  ioctl(fd, CDROMSTART, 0);
  ```

  - **inputs:**

    none

  - **outputs:**

    none

  - **error return:**

    - ENOSYS      cd drive not audio-capable.

  - **notes:**

    - Exact interpretation of this ioctl depends on the device, but most seem to spin the drive up and/or close the tray. Other devices ignore the ioctl completely.

- **CDROMEJECT**

  - Ejects the cdrom media

  usage:



  ```text
  ioctl(fd, CDROMEJECT, 0);
  ```

  - **inputs:**

    none

  - **outputs:**

    none

  - **error returns:**

    - ENOSYS      cd drive not capable of ejecting

    - EBUSY       other processes are accessing drive, or door is locked

  - **notes:**

    - See CDROM_LOCKDOOR, below.

- **CDROMCLOSETRAY**

  pendant of CDROMEJECT

  usage:



  ```text
  ioctl(fd, CDROMCLOSETRAY, 0);
  ```

  - **inputs:**

    none

  - **outputs:**

    none

  - **error returns:**

    - ENOSYS      cd drive not capable of closing the tray

    - EBUSY       other processes are accessing drive, or door is locked

  - **notes:**

    - See CDROM_LOCKDOOR, below.

- **CDROMVOLCTRL**

  Control output volume (struct cdrom_volctrl)

  usage:



  ```text
  struct cdrom_volctrl volume;

  ioctl(fd, CDROMVOLCTRL, &volume);
  ```

  - **inputs:**

    cdrom_volctrl structure containing volumes for up to 4 channels.

  - **outputs:**

    none

  - **error return:**

    - ENOSYS      cd drive not audio-capable.

- **CDROMVOLREAD**

  Get the drive's volume setting

  (struct cdrom_volctrl)

  usage:



  ```text
  struct cdrom_volctrl volume;

  ioctl(fd, CDROMVOLREAD, &volume);
  ```

  - **inputs:**

    none

  - **outputs:**

    The current volume settings.

  - **error return:**

    - ENOSYS      cd drive not audio-capable.

- **CDROMSUBCHNL**

  Read subchannel data

  (struct cdrom_subchnl)

  usage:



  ```text
  struct cdrom_subchnl q;

  ioctl(fd, CDROMSUBCHNL, &q);
  ```

  - **inputs:**

    cdrom_subchnl structure

  - **outputs:**

    cdrom_subchnl structure

  - **error return:**

    - ENOSYS      cd drive not audio-capable.

    - EINVAL      format not CDROM_MSF or CDROM_LBA

  - **notes:**

    - Format is converted to CDROM_MSF or CDROM_LBA as per user request on return

- **CDROMREADRAW**

  read data in raw mode (2352 Bytes)

  (struct cdrom_read)

  usage:



  ```text
  union {

    struct cdrom_msf msf;               /* input */
    char buffer[CD_FRAMESIZE_RAW];      /* return */
  } arg;
  ioctl(fd, CDROMREADRAW, &arg);
  ```

  - **inputs:**

    cdrom_msf structure indicating an address to read.

    Only the start values are significant.

  - **outputs:**

    Data written to address provided by user.

  - **error return:**

    - EINVAL      address less than 0, or msf less than 0:2:0

    - ENOMEM      out of memory

  - **notes:**

    - As of 2.6.8.1, comments in &lt;linux/cdrom.h&gt; indicate that this ioctl accepts a cdrom_read structure, but actual source code reads a cdrom_msf structure and writes a buffer of data to the same address.

    - MSF values are converted to LBA values via this formula:



      ```text
      lba = (((m * CD_SECS) + s) * CD_FRAMES + f) - CD_MSF_OFFSET;
      ```

- **CDROMREADMODE1**

  Read CDROM mode 1 data (2048 Bytes)

  (struct cdrom_read)

  - **notes:**

    Identical to CDROMREADRAW except that block size is CD_FRAMESIZE (2048) bytes

- **CDROMREADMODE2**

  Read CDROM mode 2 data (2336 Bytes)

  (struct cdrom_read)

  - **notes:**

    Identical to CDROMREADRAW except that block size is CD_FRAMESIZE_RAW0 (2336) bytes

- **CDROMREADAUDIO**

  (struct cdrom_read_audio)

  usage:



  ```text
  struct cdrom_read_audio ra;

  ioctl(fd, CDROMREADAUDIO, &ra);
  ```

  - **inputs:**

    cdrom_read_audio structure containing read start point and length

  - **outputs:**

    audio data, returned to buffer indicated by ra

  - **error return:**

    - EINVAL      format not CDROM_MSF or CDROM_LBA

    - EINVAL      nframes not in range \[1 75\]

    - ENXIO       drive has no queue (probably means invalid fd)

    - ENOMEM      out of memory

- **CDROMEJECT_SW**

  enable(1)/disable(0) auto-ejecting

  usage:



  ```text
  int val;

  ioctl(fd, CDROMEJECT_SW, val);
  ```

  - **inputs:**

    Flag specifying auto-eject flag.

  - **outputs:**

    none

  - **error return:**

    - ENOSYS      Drive is not capable of ejecting.

    - EBUSY       Door is locked

- **CDROMMULTISESSION**

  Obtain the start-of-last-session address of multi session disks

  (struct cdrom_multisession)

  usage:



  ```text
  struct cdrom_multisession ms_info;

  ioctl(fd, CDROMMULTISESSION, &ms_info);
  ```

  - **inputs:**

    > cdrom_multisession structure containing desired

    format.

  - **outputs:**

    cdrom_multisession structure is filled with last_session information.

  - **error return:**

    - EINVAL      format not CDROM_MSF or CDROM_LBA

- **CDROM_GET_MCN**

  Obtain the "Universal Product Code" if available

  (struct cdrom_mcn)

  usage:



  ```text
  struct cdrom_mcn mcn;

  ioctl(fd, CDROM_GET_MCN, &mcn);
  ```

  - **inputs:**

    none

  - **outputs:**

    Universal Product Code

  - **error return:**

    - ENOSYS      Drive is not capable of reading MCN data.

  - **notes:**

    - Source code comments state:



      ```text
      The following function is implemented, although very few
      audio discs give Universal Product Code information, which
      should just be the Medium Catalog Number on the box.  Note,
      that the way the code is written on the CD is /not/ uniform
      across all discs!
      ```

- **CDROM_GET_UPC**

  CDROM_GET_MCN  (deprecated)

  Not implemented, as of 2.6.8.1

- **CDROMRESET**

  hard-reset the drive

  usage:



  ```text
  ioctl(fd, CDROMRESET, 0);
  ```

  - **inputs:**

    none

  - **outputs:**

    none

  - **error return:**

    - EACCES      Access denied:  requires CAP_SYS_ADMIN

    - ENOSYS      Drive is not capable of resetting.

- **CDROMREADCOOKED**

  read data in cooked mode

  usage:



  ```text
  u8 buffer[CD_FRAMESIZE]

  ioctl(fd, CDROMREADCOOKED, buffer);
  ```

  - **inputs:**

    none

  - **outputs:**

    2048 bytes of data, "cooked" mode.

  - **notes:**

    Not implemented on all drives.

- **CDROMREADALL**

  read all 2646 bytes

  Same as CDROMREADCOOKED, but reads 2646 bytes.

- **CDROMSEEK**

  seek msf address

  usage:



  ```text
  struct cdrom_msf msf;

  ioctl(fd, CDROMSEEK, &msf);
  ```

  - **inputs:**

    MSF address to seek to.

  - **outputs:**

    none

- **CDROMPLAYBLK**

  scsi-cd only

  (struct cdrom_blk)

  usage:



  ```text
  struct cdrom_blk blk;

  ioctl(fd, CDROMPLAYBLK, &blk);
  ```

  - **inputs:**

    Region to play

  - **outputs:**

    none

- **CDROMGETSPINDOWN**

  Obsolete, was ide-cd only

  usage:



  ```text
  char spindown;

  ioctl(fd, CDROMGETSPINDOWN, &spindown);
  ```

  - **inputs:**

    none

  - **outputs:**

    The value of the current 4-bit spindown value.

- **CDROMSETSPINDOWN**

  Obsolete, was ide-cd only

  usage:



  ```text
  char spindown

  ioctl(fd, CDROMSETSPINDOWN, &spindown);
  ```

  - **inputs:**

    4-bit value used to control spindown (TODO: more detail here)

  - **outputs:**

    none

- **CDROM_SET_OPTIONS**

  Set behavior options

  usage:



  ```text
  int options;

  ioctl(fd, CDROM_SET_OPTIONS, options);
  ```

  - **inputs:**

    > New values for drive options.  The logical 'or' of:


    <table>
    <tbody>
    <tr>
    <td>


    CDO_AUTO_CLOSE

    </td>
    <td>


    close tray on first open(2)

    </td>
    </tr>
    <tr>
    <td>


    CDO_AUTO_EJECT

    </td>
    <td>


    open tray on last release

    </td>
    </tr>
    <tr>
    <td>


    CDO_USE_FFLAGS

    </td>
    <td>


    use O_NONBLOCK information on open

    </td>
    </tr>
    <tr>
    <td>


    CDO_LOCK

    </td>
    <td>


    lock tray on open files

    </td>
    </tr>
    <tr>
    <td>


    CDO_CHECK_TYPE

    </td>
    <td>


    check type on open for data

    </td>
    </tr>
    </tbody>
    </table>

  - **outputs:**

    Returns the resulting options settings in the ioctl return value.  Returns -1 on error.

  - **error return:**

    - ENOSYS      selected option(s) not supported by drive.

- **CDROM_CLEAR_OPTIONS**

  Clear behavior options

  Same as CDROM_SET_OPTIONS, except that selected options are turned off.

- **CDROM_SELECT_SPEED**

  Set the CD-ROM speed

  usage:



  ```text
  int speed;

  ioctl(fd, CDROM_SELECT_SPEED, speed);
  ```

  - **inputs:**

    New drive speed.

  - **outputs:**

    none

  - **error return:**

    - ENOSYS      speed selection not supported by drive.

- **CDROM_SELECT_DISC**

  Select disc (for juke-boxes)

  usage:



  ```text
  int disk;

  ioctl(fd, CDROM_SELECT_DISC, disk);
  ```

  - **inputs:**

    Disk to load into drive.

  - **outputs:**

    none

  - **error return:**

    - EINVAL      Disk number beyond capacity of drive

- **CDROM_MEDIA_CHANGED**

  Check is media changed

  usage:



  ```text
  int slot;

  ioctl(fd, CDROM_MEDIA_CHANGED, slot);
  ```

  - **inputs:**

    Slot number to be tested, always zero except for jukeboxes.

    May also be special values CDSL_NONE or CDSL_CURRENT

  - **outputs:**

    > Ioctl return value is 0 or 1 depending on whether the media

    has been changed, or -1 on error.

  - **error returns:**

    - ENOSYS      Drive can't detect media change

    - EINVAL      Slot number beyond capacity of drive

    - ENOMEM      Out of memory

- **CDROM_DRIVE_STATUS**

  Get tray position, etc.

  usage:



  ```text
  int slot;

  ioctl(fd, CDROM_DRIVE_STATUS, slot);
  ```

  - **inputs:**

    Slot number to be tested, always zero except for jukeboxes.

    May also be special values CDSL_NONE or CDSL_CURRENT

  - **outputs:**

    > Ioctl return value will be one of the following values

    from &lt;linux/cdrom.h&gt;:

    >
    > <table>
    > <tbody>
    > <tr>
    > <td>
    >
    >
    > CDS_NO_INFO
    >
    > </td>
    > <td>
    >
    >
    > Information not available.
    >
    > </td>
    > </tr>
    > <tr>
    > <td>
    >
    >
    > CDS_NO_DISC
    >
    > </td>
    > <td>
    >
    >
    >
    >
    > </td>
    > </tr>
    > <tr>
    > <td>
    >
    >
    > CDS_TRAY_OPEN
    >
    > </td>
    > <td>
    >
    >
    >
    >
    > </td>
    > </tr>
    > <tr>
    > <td>
    >
    >
    > CDS_DRIVE_NOT_READY
    >
    > </td>
    > <td>
    >
    >
    >
    >
    > </td>
    > </tr>
    > <tr>
    > <td>
    >
    >
    > CDS_DISC_OK
    >
    > </td>
    > <td>
    >
    >
    >
    >
    > </td>
    > </tr>
    > <tr>
    > <td>
    >
    >
    > -1
    >
    > </td>
    > <td>
    >
    >
    > error
    >
    > </td>
    > </tr>
    > </tbody>
    > </table>

  - **error returns:**

    - ENOSYS      Drive can't detect drive status

    - EINVAL      Slot number beyond capacity of drive

    - ENOMEM      Out of memory

- **CDROM_DISC_STATUS**

  Get disc type, etc.

  usage:



  ```text
  ioctl(fd, CDROM_DISC_STATUS, 0);
  ```

  - **inputs:**

    none

  - **outputs:**

    > Ioctl return value will be one of the following values

    from &lt;linux/cdrom.h&gt;:

    > - CDS_NO_INFO
    >
    > - CDS_AUDIO
    >
    > - CDS_MIXED
    >
    > - CDS_XA_2_2
    >
    > - CDS_XA_2_1
    >
    > - CDS_DATA_1

  - **error returns:**

    none at present

  - **notes:**

    - Source code comments state:



      ```text
      Ok, this is where problems start.  The current interface for
      the CDROM_DISC_STATUS ioctl is flawed.  It makes the false
      assumption that CDs are all CDS_DATA_1 or all CDS_AUDIO, etc.
      Unfortunately, while this is often the case, it is also
      very common for CDs to have some tracks with data, and some
      tracks with audio.      Just because I feel like it, I declare
      the following to be the best way to cope.  If the CD has
      ANY data tracks on it, it will be returned as a data CD.
      If it has any XA tracks, I will return it as that.      Now I
      could simplify this interface by combining these returns with
      the above, but this more clearly demonstrates the problem
      with the current interface.  Too bad this wasn't designed
      to use bitmasks...             -Erik

      Well, now we have the option CDS_MIXED: a mixed-type CD.
      User level programmers might feel the ioctl is not very
      useful.
                      ---david
      ```

- **CDROM_CHANGER_NSLOTS**

  Get number of slots

  usage:



  ```text
  ioctl(fd, CDROM_CHANGER_NSLOTS, 0);
  ```

  - **inputs:**

    none

  - **outputs:**

    The ioctl return value will be the number of slots in a CD changer.  Typically 1 for non-multi-disk devices.

  - **error returns:**

    none

- **CDROM_LOCKDOOR**

  lock or unlock door

  usage:



  ```text
  int lock;

  ioctl(fd, CDROM_LOCKDOOR, lock);
  ```

  - **inputs:**

    Door lock flag, 1=lock, 0=unlock

  - **outputs:**

    none

  - **error returns:**

    - EDRIVE_CANT_DO_THIS

      > Door lock function not supported.

    - EBUSY

      > Attempt to unlock when multiple users have the drive open and not CAP_SYS_ADMIN

  - **notes:**

    As of 2.6.8.1, the lock flag is a global lock, meaning that all CD drives will be locked or unlocked together.  This is probably a bug.

    The EDRIVE_CANT_DO_THIS value is defined in &lt;linux/cdrom.h&gt; and is currently (2.6.8.1) the same as EOPNOTSUPP

- **CDROM_DEBUG**

  Turn debug messages on/off

  usage:



  ```text
  int debug;

  ioctl(fd, CDROM_DEBUG, debug);
  ```

  - **inputs:**

    Cdrom debug flag, 0=disable, 1=enable

  - **outputs:**

    The ioctl return value will be the new debug flag.

  - **error return:**

    - EACCES      Access denied:  requires CAP_SYS_ADMIN

- **CDROM_GET_CAPABILITY**

  get capabilities

  usage:



  ```text
  ioctl(fd, CDROM_GET_CAPABILITY, 0);
  ```

  - **inputs:**

    none

  - **outputs:**

    The ioctl return value is the current device capability flags.  See CDC_CLOSE_TRAY, CDC_OPEN_TRAY, etc.

- **CDROMAUDIOBUFSIZ**

  set the audio buffer size

  usage:



  ```text
  int arg;

  ioctl(fd, CDROMAUDIOBUFSIZ, val);
  ```

  - **inputs:**

    New audio buffer size

  - **outputs:**

    The ioctl return value is the new audio buffer size, or -1 on error.

  - **error return:**

    - ENOSYS      Not supported by this driver.

  - **notes:**

    Not supported by all drivers.

DVD_READ_STRUCT                 Read structure

> usage:
>
>
>
> ```text
> dvd_struct s;
>
> ioctl(fd, DVD_READ_STRUCT, &s);
> ```
>
> - **inputs:**
>
>   > dvd_struct structure, containing:
>
>
>   <table>
>   <tbody>
>   <tr>
>   <td>
>
>
>   type
>
>   </td>
>   <td>
>
>
>   specifies the information desired, one of DVD_STRUCT_PHYSICAL, DVD_STRUCT_COPYRIGHT, DVD_STRUCT_DISCKEY, DVD_STRUCT_BCA, DVD_STRUCT_MANUFACT
>
>   </td>
>   </tr>
>   <tr>
>   <td>
>
>
>   physical.layer_num
>
>   </td>
>   <td>
>
>
>   desired layer, indexed from 0
>
>   </td>
>   </tr>
>   <tr>
>   <td>
>
>
>   copyright.layer_num
>
>   </td>
>   <td>
>
>
>   desired layer, indexed from 0
>
>   </td>
>   </tr>
>   <tr>
>   <td>
>
>
>   disckey.agid
>
>   </td>
>   <td>
>
>
>
>
>   </td>
>   </tr>
>   </tbody>
>   </table>
>
> - **outputs:**
>
>   > dvd_struct structure, containing:
>
>
>   <table>
>   <tbody>
>   <tr>
>   <td>
>
>
>   physical
>
>   </td>
>   <td>
>
>
>   for type == DVD_STRUCT_PHYSICAL
>
>   </td>
>   </tr>
>   <tr>
>   <td>
>
>
>   copyright
>
>   </td>
>   <td>
>
>
>   for type == DVD_STRUCT_COPYRIGHT
>
>   </td>
>   </tr>
>   <tr>
>   <td>
>
>
>   disckey.value
>
>   </td>
>   <td>
>
>
>   for type == DVD_STRUCT_DISCKEY
>
>   </td>
>   </tr>
>   <tr>
>   <td>
>
>
>   bca.\{len,value\}
>
>   </td>
>   <td>
>
>
>   for type == DVD_STRUCT_BCA
>
>   </td>
>   </tr>
>   <tr>
>   <td>
>
>
>   manufact.\{len,valu\}
>
>   </td>
>   <td>
>
>
>   for type == DVD_STRUCT_MANUFACT
>
>   </td>
>   </tr>
>   </tbody>
>   </table>
>
> - **error returns:**
>
>   - EINVAL      physical.layer_num exceeds number of layers
>
>   - EIO         Received invalid response from drive

DVD_WRITE_STRUCT                Write structure

> Not implemented, as of 2.6.8.1

DVD_AUTH                        Authentication

> usage:
>
>
>
> ```text
> dvd_authinfo ai;
>
> ioctl(fd, DVD_AUTH, &ai);
> ```
>
> - **inputs:**
>
>   dvd_authinfo structure.  See &lt;linux/cdrom.h&gt;
>
> - **outputs:**
>
>   dvd_authinfo structure.
>
> - **error return:**
>
>   - ENOTTY      ai.type not recognized.

- **CDROM_SEND_PACKET**

  send a packet to the drive

  usage:



  ```text
  struct cdrom_generic_command cgc;

  ioctl(fd, CDROM_SEND_PACKET, &cgc);
  ```

  - **inputs:**

    cdrom_generic_command structure containing the packet to send.

  - **outputs:**

    > none

    cdrom_generic_command structure containing results.

  - **error return:**

    - EIO

      > command failed.

    - EPERM

      > Operation not permitted, either because a write command was attempted on a drive which is opened read-only, or because the command requires CAP_SYS_RAWIO

    - EINVAL

      > cgc.data_direction not set

- **CDROM_NEXT_WRITABLE**

  get next writable block

  usage:



  ```text
  long next;

  ioctl(fd, CDROM_NEXT_WRITABLE, &next);
  ```

  - **inputs:**

    none

  - **outputs:**

    The next writable block.

  - **notes:**

    > If the device does not support this ioctl directly, the

    ioctl will return CDROM_LAST_WRITTEN + 7.

- **CDROM_LAST_WRITTEN**

  get last block written on disc

  usage:



  ```text
  long last;

  ioctl(fd, CDROM_LAST_WRITTEN, &last);
  ```

  - **inputs:**

    none

  - **outputs:**

    The last block written on disc

  - **notes:**

    If the device does not support this ioctl directly, the result is derived from the disc's table of contents.  If the table of contents can't be read, this ioctl returns an error.

---

# Summary of HDIO_ ioctl calls

_Peios Kernel / Userspace interfaces / System and device interfaces / ioctl conventions_

> Edward A. Falk <efalk@google.com>

> **Peios:** Linux capability names in this interface retain their API meaning, but KACS evaluates them through native token privileges or compatibility rules. UID 0, `setcap` and Unix mode bits do not independently grant native authority. Object access and PIP checks remain additional constraints where applicable. See [Peios kernel behaviour](</kernel/introduction/peios-behaviour.md>) for the mapping and exceptions.


<a id="rst-summary-of-hdio-ioctl-calls"></a>

- Edward A. Falk &lt;[efalk@google.com](<mailto:efalk@google.com>)&gt;

November, 2004

This document attempts to describe the ioctl(2) calls supported by the HD/IDE layer.  These are by-and-large implemented (as of Linux 5.11) drivers/ata/libata-scsi.c.

ioctl values are listed in &lt;linux/hdreg.h&gt;.  As of this writing, they are as follows:

> ioctls that pass argument pointers to user space:
>
> >
> > <table>
> > <tbody>
> > <tr>
> > <td>
> >
> >
> > HDIO_GETGEO
> >
> > </td>
> > <td>
> >
> >
> > get device geometry
> >
> > </td>
> > </tr>
> > <tr>
> > <td>
> >
> >
> > HDIO_GET_32BIT
> >
> > </td>
> > <td>
> >
> >
> > get current io_32bit setting
> >
> > </td>
> > </tr>
> > <tr>
> > <td>
> >
> >
> > HDIO_GET_IDENTITY
> >
> > </td>
> > <td>
> >
> >
> > get IDE identification info
> >
> > </td>
> > </tr>
> > <tr>
> > <td>
> >
> >
> > HDIO_DRIVE_TASKFILE
> >
> > </td>
> > <td>
> >
> >
> > execute raw taskfile
> >
> > </td>
> > </tr>
> > <tr>
> > <td>
> >
> >
> > HDIO_DRIVE_TASK
> >
> > </td>
> > <td>
> >
> >
> > execute task and special drive command
> >
> > </td>
> > </tr>
> > <tr>
> > <td>
> >
> >
> > HDIO_DRIVE_CMD
> >
> > </td>
> > <td>
> >
> >
> > execute a special drive command
> >
> > </td>
> > </tr>
> > </tbody>
> > </table>
>
> ioctls that pass non-pointer values:
>
> >
> > <table>
> > <tbody>
> > <tr>
> > <td>
> >
> >
> > HDIO_SET_32BIT
> >
> > </td>
> > <td>
> >
> >
> > change io_32bit flags
> >
> > </td>
> > </tr>
> > </tbody>
> > </table>

The information that follows was determined from reading kernel source code.  It is likely that some corrections will be made over time.

---

General:

> Unless otherwise specified, all ioctl calls return 0 on success and -1 with errno set to an appropriate value on error.
>
> Unless otherwise specified, all ioctl calls return -1 and set errno to EFAULT on a failed attempt to copy data to or from user address space.
>
> Unless otherwise specified, all data structures and constants are defined in &lt;linux/hdreg.h&gt;

---

- **HDIO_GETGEO**

  get device geometry

  usage:



  ```text
  struct hd_geometry geom;

  ioctl(fd, HDIO_GETGEO, &geom);
  ```

  - **inputs:**

    none

  - **outputs:**

    > hd_geometry structure containing:


    <table>
    <tbody>
    <tr>
    <td>


    heads

    </td>
    <td>


    number of heads

    </td>
    </tr>
    <tr>
    <td>


    sectors

    </td>
    <td>


    number of sectors/track

    </td>
    </tr>
    <tr>
    <td>


    cylinders

    </td>
    <td>


    number of cylinders, mod 65536

    </td>
    </tr>
    <tr>
    <td>


    start

    </td>
    <td>


    starting sector of this partition.

    </td>
    </tr>
    </tbody>
    </table>

  - **error returns:**

    - EINVAL

      > if the device is not a disk drive or floppy drive, or if the user passes a null pointer

  - **notes:**

    Not particularly useful with modern disk drives, whose geometry is a polite fiction anyway.  Modern drives are addressed purely by sector number nowadays (lba addressing), and the drive geometry is an abstraction which is actually subject to change.  Currently (as of Nov 2004), the geometry values are the "bios" values -- presumably the values the drive had when Linux first booted.

    In addition, the cylinders field of the hd_geometry is an unsigned short, meaning that on most architectures, this ioctl will not return a meaningful value on drives with more than 65535 tracks.

    The start field is unsigned long, meaning that it will not contain a meaningful value for disks over 219 Gb in size.

- **HDIO_GET_IDENTITY**

  get IDE identification info

  usage:



  ```text
  unsigned char identity[512];

  ioctl(fd, HDIO_GET_IDENTITY, identity);
  ```

  - **inputs:**

    none

  - **outputs:**

    ATA drive identity information.  For full description, see the IDENTIFY DEVICE and IDENTIFY PACKET DEVICE commands in the ATA specification.

  - **error returns:**

    - EINVAL      Called on a partition instead of the whole disk device

    - ENOMSG      IDENTIFY DEVICE information not available

  - **notes:**

    Returns information that was obtained when the drive was probed.  Some of this information is subject to change, and this ioctl does not re-probe the drive to update the information.

    This information is also available from /proc/ide/hdX/identify

- **HDIO_GET_32BIT**

  get current io_32bit setting

  usage:



  ```text
  long val;

  ioctl(fd, HDIO_GET_32BIT, &val);
  ```

  - **inputs:**

    none

  - **outputs:**

    The value of the current io_32bit setting

  - **notes:**

    0=16-bit, 1=32-bit, 2,3 = 32bit+sync

- **HDIO_DRIVE_TASKFILE**

  execute raw taskfile

  - **Note:**

    If you don't have a copy of the ANSI ATA specification handy, you should probably ignore this ioctl.

  - Execute an ATA disk command directly by writing the "taskfile" registers of the drive.  Requires ADMIN and RAWIO access privileges.

  usage:



  ```text
  struct {

    ide_task_request_t req_task;
    u8 outbuf[OUTPUT_SIZE];
    u8 inbuf[INPUT_SIZE];
  } task;
  memset(&task.req_task, 0, sizeof(task.req_task));
  task.req_task.out_size = sizeof(task.outbuf);
  task.req_task.in_size = sizeof(task.inbuf);
  ...
  ioctl(fd, HDIO_DRIVE_TASKFILE, &task);
  ...
  ```

  inputs:

  > (See below for details on memory area passed to ioctl.)
  >
  >
  > <table>
  > <tbody>
  > <tr>
  > <td>
  >
  >
  > io_ports\[8\]
  >
  > </td>
  > <td>
  >
  >
  > values to be written to taskfile registers
  >
  > </td>
  > </tr>
  > <tr>
  > <td>
  >
  >
  > hob_ports\[8\]
  >
  > </td>
  > <td>
  >
  >
  > high-order bytes, for extended commands.
  >
  > </td>
  > </tr>
  > <tr>
  > <td>
  >
  >
  > out_flags
  >
  > </td>
  > <td>
  >
  >
  > flags indicating which registers are valid
  >
  > </td>
  > </tr>
  > <tr>
  > <td>
  >
  >
  > in_flags
  >
  > </td>
  > <td>
  >
  >
  > flags indicating which registers should be returned
  >
  > </td>
  > </tr>
  > <tr>
  > <td>
  >
  >
  > data_phase
  >
  > </td>
  > <td>
  >
  >
  > see below
  >
  > </td>
  > </tr>
  > <tr>
  > <td>
  >
  >
  > req_cmd
  >
  > </td>
  > <td>
  >
  >
  > command type to be executed
  >
  > </td>
  > </tr>
  > <tr>
  > <td>
  >
  >
  > out_size
  >
  > </td>
  > <td>
  >
  >
  > size of output buffer
  >
  > </td>
  > </tr>
  > <tr>
  > <td>
  >
  >
  > outbuf
  >
  > </td>
  > <td>
  >
  >
  > buffer of data to be transmitted to disk
  >
  > </td>
  > </tr>
  > <tr>
  > <td>
  >
  >
  > inbuf
  >
  > </td>
  > <td>
  >
  >
  > buffer of data to be received from disk (see \[1\])
  >
  > </td>
  > </tr>
  > </tbody>
  > </table>

  outputs:

  >
  > <table>
  > <tbody>
  > <tr>
  > <td>
  >
  >
  > io_ports\[\]
  >
  > </td>
  > <td>
  >
  >
  > values returned in the taskfile registers
  >
  > </td>
  > </tr>
  > <tr>
  > <td>
  >
  >
  > hob_ports\[\]
  >
  > </td>
  > <td>
  >
  >
  > high-order bytes, for extended commands.
  >
  > </td>
  > </tr>
  > <tr>
  > <td>
  >
  >
  > out_flags
  >
  > </td>
  > <td>
  >
  >
  > flags indicating which registers are valid (see \[2\])
  >
  > </td>
  > </tr>
  > <tr>
  > <td>
  >
  >
  > in_flags
  >
  > </td>
  > <td>
  >
  >
  > flags indicating which registers should be returned
  >
  > </td>
  > </tr>
  > <tr>
  > <td>
  >
  >
  > outbuf
  >
  > </td>
  > <td>
  >
  >
  > buffer of data to be transmitted to disk (see \[1\])
  >
  > </td>
  > </tr>
  > <tr>
  > <td>
  >
  >
  > inbuf
  >
  > </td>
  > <td>
  >
  >
  > buffer of data to be received from disk
  >
  > </td>
  > </tr>
  > </tbody>
  > </table>

  - **error returns:**

    - EACCES      CAP_SYS_ADMIN or CAP_SYS_RAWIO privilege not set.

    - ENOMSG      Device is not a disk drive.

    - ENOMEM      Unable to allocate memory for task

    - EFAULT      req_cmd == TASKFILE_IN_OUT (not implemented as of 2.6.8)

    - EPERM

      > req_cmd == TASKFILE_MULTI_OUT and drive multi-count not yet set.

    - EIO         Drive failed the command.

  notes:

  > \[1\] READ THE FOLLOWING NOTES *CAREFULLY*.  THIS IOCTL IS FULL OF GOTCHAS.  Extreme caution should be used with using this ioctl.  A mistake can easily corrupt data or hang the system.
  >
  > \[2\] Both the input and output buffers are copied from the user and written back to the user, even when not used.
  >
  > \[3\] If one or more bits are set in out_flags and in_flags is zero, the following values are used for in_flags.all and written back into in_flags on completion.
  >
  > > - IDE_TASKFILE_STD_IN_FLAGS \| (IDE_HOB_STD_IN_FLAGS &lt;&lt; 8) if LBA48 addressing is enabled for the drive
  > >
  > > - IDE_TASKFILE_STD_IN_FLAGS if CHS/LBA28
  >
  > The association between in_flags.all and each enable bitfield flips depending on endianness; fortunately, TASKFILE only uses inflags.b.data bit and ignores all other bits. The end result is that, on any endian machines, it has no effect other than modifying in_flags on completion.
  >
  > \[4\] The default value of SELECT is (0xa0\|DEV_bit\|LBA_bit) except for four drives per port chipsets.  For four drives per port chipsets, it's (0xa0\|DEV_bit\|LBA_bit) for the first pair and (0x80\|DEV_bit\|LBA_bit) for the second pair.
  >
  > \[5\] The argument to the ioctl is a pointer to a region of memory containing a ide_task_request_t structure, followed by an optional buffer of data to be transmitted to the drive, followed by an optional buffer to receive data from the drive.
  >
  > Command is passed to the disk drive via the ide_task_request_t structure, which contains these fields:
  >
  > >
  > > <table>
  > > <tbody>
  > > <tr>
  > > <td>
  > >
  > >
  > > io_ports\[8\]
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > values for the taskfile registers
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > hob_ports\[8\]
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > high-order bytes, for extended commands
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > out_flags
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > flags indicating which entries in the io_ports\[\] and hob_ports\[\] arrays contain valid values.  Type ide_reg_valid_t.
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > in_flags
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > flags indicating which entries in the io_ports\[\] and hob_ports\[\] arrays are expected to contain valid values on return.
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > data_phase
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > See below
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > req_cmd
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > Command type, see below
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > out_size
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > output (user-&gt;drive) buffer size, bytes
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > in_size
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > input (drive-&gt;user) buffer size, bytes
  > >
  > > </td>
  > > </tr>
  > > </tbody>
  > > </table>
  >
  > When out_flags is zero, the following registers are loaded.
  >
  > >
  > > <table>
  > > <tbody>
  > > <tr>
  > > <td>
  > >
  > >
  > > HOB_FEATURE
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If the drive supports LBA48
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > HOB_NSECTOR
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If the drive supports LBA48
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > HOB_SECTOR
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If the drive supports LBA48
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > HOB_LCYL
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If the drive supports LBA48
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > HOB_HCYL
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If the drive supports LBA48
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > FEATURE
  > >
  > > </td>
  > > <td>
  > >
  > >
  > >
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > NSECTOR
  > >
  > > </td>
  > > <td>
  > >
  > >
  > >
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > SECTOR
  > >
  > > </td>
  > > <td>
  > >
  > >
  > >
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > LCYL
  > >
  > > </td>
  > > <td>
  > >
  > >
  > >
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > HCYL
  > >
  > > </td>
  > > <td>
  > >
  > >
  > >
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > SELECT
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > First, masked with 0xE0 if LBA48, 0xEF otherwise; then, or'ed with the default value of SELECT.
  > >
  > > </td>
  > > </tr>
  > > </tbody>
  > > </table>
  >
  > If any bit in out_flags is set, the following registers are loaded.
  >
  > >
  > > <table>
  > > <tbody>
  > > <tr>
  > > <td>
  > >
  > >
  > > HOB_DATA
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If out_flags.b.data is set.  HOB_DATA will travel on DD8-DD15 on little endian machines and on DD0-DD7 on big endian machines.
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > DATA
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If out_flags.b.data is set.  DATA will travel on DD0-DD7 on little endian machines and on DD8-DD15 on big endian machines.
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > HOB_NSECTOR
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If out_flags.b.nsector_hob is set
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > HOB_SECTOR
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If out_flags.b.sector_hob is set
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > HOB_LCYL
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If out_flags.b.lcyl_hob is set
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > HOB_HCYL
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If out_flags.b.hcyl_hob is set
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > FEATURE
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If out_flags.b.feature is set
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > NSECTOR
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If out_flags.b.nsector is set
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > SECTOR
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If out_flags.b.sector is set
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > LCYL
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If out_flags.b.lcyl is set
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > HCYL
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If out_flags.b.hcyl is set
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > SELECT
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > Or'ed with the default value of SELECT and loaded regardless of out_flags.b.select.
  > >
  > > </td>
  > > </tr>
  > > </tbody>
  > > </table>
  >
  > Taskfile registers are read back from the drive into \{io\|hob\}\_ports\[\] after the command completes iff one of the following conditions is met; otherwise, the original values will be written back, unchanged.
  >
  > > 1. The drive fails the command (EIO).
  > >
  > > 2. One or more than one bits are set in out_flags.
  > >
  > > 3. The requested data_phase is TASKFILE_NO_DATA.
  > >
  > >
  > > <table>
  > > <tbody>
  > > <tr>
  > > <td>
  > >
  > >
  > > HOB_DATA
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If in_flags.b.data is set.  It will contain DD8-DD15 on little endian machines and DD0-DD7 on big endian machines.
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > DATA
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If in_flags.b.data is set.  It will contain DD0-DD7 on little endian machines and DD8-DD15 on big endian machines.
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > HOB_FEATURE
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If the drive supports LBA48
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > HOB_NSECTOR
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If the drive supports LBA48
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > HOB_SECTOR
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If the drive supports LBA48
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > HOB_LCYL
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If the drive supports LBA48
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > HOB_HCYL
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > If the drive supports LBA48
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > NSECTOR
  > >
  > > </td>
  > > <td>
  > >
  > >
  > >
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > SECTOR
  > >
  > > </td>
  > > <td>
  > >
  > >
  > >
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > LCYL
  > >
  > > </td>
  > > <td>
  > >
  > >
  > >
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > HCYL
  > >
  > > </td>
  > > <td>
  > >
  > >
  > >
  > >
  > > </td>
  > > </tr>
  > > </tbody>
  > > </table>
  >
  > The data_phase field describes the data transfer to be performed.  Value is one of:
  >
  > >
  > > <table>
  > > <tbody>
  > > <tr>
  > > <td>
  > >
  > >
  > > TASKFILE_IN
  > >
  > > </td>
  > > <td>
  > >
  > >
  > >
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > TASKFILE_MULTI_IN
  > >
  > > </td>
  > > <td>
  > >
  > >
  > >
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > TASKFILE_OUT
  > >
  > > </td>
  > > <td>
  > >
  > >
  > >
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > TASKFILE_MULTI_OUT
  > >
  > > </td>
  > > <td>
  > >
  > >
  > >
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > TASKFILE_IN_OUT
  > >
  > > </td>
  > > <td>
  > >
  > >
  > >
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > TASKFILE_IN_DMA
  > >
  > > </td>
  > > <td>
  > >
  > >
  > >
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > TASKFILE_IN_DMAQ
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > == IN_DMA (queueing not supported)
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > TASKFILE_OUT_DMA
  > >
  > > </td>
  > > <td>
  > >
  > >
  > >
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > TASKFILE_OUT_DMAQ
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > == OUT_DMA (queueing not supported)
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > TASKFILE_P_IN
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > unimplemented
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > TASKFILE_P_IN_DMA
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > unimplemented
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > TASKFILE_P_IN_DMAQ
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > unimplemented
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > TASKFILE_P_OUT
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > unimplemented
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > TASKFILE_P_OUT_DMA
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > unimplemented
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > TASKFILE_P_OUT_DMAQ
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > unimplemented
  > >
  > > </td>
  > > </tr>
  > > </tbody>
  > > </table>
  >
  > The req_cmd field classifies the command type.  It may be one of:
  >
  > >
  > > <table>
  > > <tbody>
  > > <tr>
  > > <td>
  > >
  > >
  > > IDE_DRIVE_TASK_NO_DATA
  > >
  > > </td>
  > > <td>
  > >
  > >
  > >
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > IDE_DRIVE_TASK_SET_XFER
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > unimplemented
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > IDE_DRIVE_TASK_IN
  > >
  > > </td>
  > > <td>
  > >
  > >
  > >
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > IDE_DRIVE_TASK_OUT
  > >
  > > </td>
  > > <td>
  > >
  > >
  > > unimplemented
  > >
  > > </td>
  > > </tr>
  > > <tr>
  > > <td>
  > >
  > >
  > > IDE_DRIVE_TASK_RAW_WRITE
  > >
  > > </td>
  > > <td>
  > >
  > >
  > >
  > >
  > > </td>
  > > </tr>
  > > </tbody>
  > > </table>
  >
  > \[6\] Do not access \{in\|out\}\_flags-&gt;all except for resetting all the bits.  Always access individual bit fields.  -&gt;all value will flip depending on endianness.  For the same reason, do not use IDE\_\{TASKFILE\|HOB\}\_STD\_\{OUT\|IN\}\_FLAGS constants defined in hdreg.h.

- **HDIO_DRIVE_CMD**

  execute a special drive command

  Note:  If you don't have a copy of the ANSI ATA specification handy, you should probably ignore this ioctl.

  usage:



  ```text
  u8 args[4+XFER_SIZE];

  ...
  ioctl(fd, HDIO_DRIVE_CMD, args);
  ```

  - **inputs:**

    Commands other than WIN_SMART:


    <table>
    <tbody>
    <tr>
    <td>


    args\[0\]

    </td>
    <td>


    COMMAND

    </td>
    </tr>
    <tr>
    <td>


    args\[1\]

    </td>
    <td>


    NSECTOR

    </td>
    </tr>
    <tr>
    <td>


    args\[2\]

    </td>
    <td>


    FEATURE

    </td>
    </tr>
    <tr>
    <td>


    args\[3\]

    </td>
    <td>


    NSECTOR

    </td>
    </tr>
    </tbody>
    </table>

    WIN_SMART:


    <table>
    <tbody>
    <tr>
    <td>


    args\[0\]

    </td>
    <td>


    COMMAND

    </td>
    </tr>
    <tr>
    <td>


    args\[1\]

    </td>
    <td>


    SECTOR

    </td>
    </tr>
    <tr>
    <td>


    args\[2\]

    </td>
    <td>


    FEATURE

    </td>
    </tr>
    <tr>
    <td>


    args\[3\]

    </td>
    <td>


    NSECTOR

    </td>
    </tr>
    </tbody>
    </table>

  - **outputs:**

    > args\[\] buffer is filled with register values followed by any

    data returned by the disk.

    >
    > <table>
    > <tbody>
    > <tr>
    > <td>
    >
    >
    > args\[0\]
    >
    > </td>
    > <td>
    >
    >
    > status
    >
    > </td>
    > </tr>
    > <tr>
    > <td>
    >
    >
    > args\[1\]
    >
    > </td>
    > <td>
    >
    >
    > error
    >
    > </td>
    > </tr>
    > <tr>
    > <td>
    >
    >
    > args\[2\]
    >
    > </td>
    > <td>
    >
    >
    > NSECTOR
    >
    > </td>
    > </tr>
    > <tr>
    > <td>
    >
    >
    > args\[3\]
    >
    > </td>
    > <td>
    >
    >
    > undefined
    >
    > </td>
    > </tr>
    > <tr>
    > <td>
    >
    >
    > args\[4+\]
    >
    > </td>
    > <td>
    >
    >
    > NSECTOR \* 512 bytes of data returned by the command.
    >
    > </td>
    > </tr>
    > </tbody>
    > </table>

  - **error returns:**

    - EACCES      Access denied:  requires CAP_SYS_RAWIO

    - ENOMEM      Unable to allocate memory for task

    - EIO         Drive reports error

  notes:

  > \[1\] For commands other than WIN_SMART, args\[1\] should equal args\[3\].  SECTOR, LCYL and HCYL are undefined.  For WIN_SMART, 0x4f and 0xc2 are loaded into LCYL and HCYL respectively.  In both cases SELECT will contain the default value for the drive.  Please refer to HDIO_DRIVE_TASKFILE notes for the default value of SELECT.
  >
  > \[2\] If NSECTOR value is greater than zero and the drive sets DRQ when interrupting for the command, NSECTOR \* 512 bytes are read from the device into the area following NSECTOR. In the above example, the area would be args\[4..4+XFER_SIZE\].  16bit PIO is used regardless of HDIO_SET_32BIT setting.
  >
  > \[3\] If COMMAND == WIN_SETFEATURES &amp;&amp; FEATURE == SETFEATURES_XFER &amp;&amp; NSECTOR &gt;= XFER_SW_DMA_0 &amp;&amp; the drive supports any DMA mode, IDE driver will try to tune the transfer mode of the drive accordingly.

- **HDIO_DRIVE_TASK**

  execute task and special drive command

  Note:  If you don't have a copy of the ANSI ATA specification handy, you should probably ignore this ioctl.

  usage:



  ```text
  u8 args[7];

  ...
  ioctl(fd, HDIO_DRIVE_TASK, args);
  ```

  - **inputs:**

    Taskfile register values:


    <table>
    <tbody>
    <tr>
    <td>


    args\[0\]

    </td>
    <td>


    COMMAND

    </td>
    </tr>
    <tr>
    <td>


    args\[1\]

    </td>
    <td>


    FEATURE

    </td>
    </tr>
    <tr>
    <td>


    args\[2\]

    </td>
    <td>


    NSECTOR

    </td>
    </tr>
    <tr>
    <td>


    args\[3\]

    </td>
    <td>


    SECTOR

    </td>
    </tr>
    <tr>
    <td>


    args\[4\]

    </td>
    <td>


    LCYL

    </td>
    </tr>
    <tr>
    <td>


    args\[5\]

    </td>
    <td>


    HCYL

    </td>
    </tr>
    <tr>
    <td>


    args\[6\]

    </td>
    <td>


    SELECT

    </td>
    </tr>
    </tbody>
    </table>

  - **outputs:**

    Taskfile register values:


    <table>
    <tbody>
    <tr>
    <td>


    args\[0\]

    </td>
    <td>


    status

    </td>
    </tr>
    <tr>
    <td>


    args\[1\]

    </td>
    <td>


    error

    </td>
    </tr>
    <tr>
    <td>


    args\[2\]

    </td>
    <td>


    NSECTOR

    </td>
    </tr>
    <tr>
    <td>


    args\[3\]

    </td>
    <td>


    SECTOR

    </td>
    </tr>
    <tr>
    <td>


    args\[4\]

    </td>
    <td>


    LCYL

    </td>
    </tr>
    <tr>
    <td>


    args\[5\]

    </td>
    <td>


    HCYL

    </td>
    </tr>
    <tr>
    <td>


    args\[6\]

    </td>
    <td>


    SELECT

    </td>
    </tr>
    </tbody>
    </table>

  - **error returns:**

    - EACCES      Access denied:  requires CAP_SYS_RAWIO

    - ENOMEM      Unable to allocate memory for task

    - ENOMSG      Device is not a disk drive.

    - EIO         Drive failed the command.

  notes:

  > \[1\] DEV bit (0x10) of SELECT register is ignored and the appropriate value for the drive is used.  All other bits are used unaltered.

- **HDIO_SET_32BIT**

  change io_32bit flags

  usage:



  ```text
  int val;

  ioctl(fd, HDIO_SET_32BIT, val);
  ```

  - **inputs:**

    New value for io_32bit flag

  - **outputs:**

    none

  - **error return:**

    - EINVAL      Called on a partition instead of the whole disk device

    - EACCES      Access denied:  requires CAP_SYS_ADMIN

    - EINVAL      value out of range \[0 3\]

    - EBUSY       Controller busy

---

# Decoding an IOCTL Magic Number

_Peios Kernel / Userspace interfaces / System and device interfaces / ioctl conventions_

> To decode a hex IOCTL code:

<a id="rst-decoding-an-ioctl-magic-number"></a>

To decode a hex IOCTL code:

Most architectures use this generic format, but check include/ARCH/ioctl.h for specifics, e.g. powerpc uses 3 bits to encode read/write and 13 bits for size.

>
> <table>
> <thead>
> <tr>
> <th>
>
>
> bits
>
> </th>
> <th>
>
>
> meaning
>
> </th>
> </tr>
> </thead>
> <tbody>
> <tr>
> <td>
>
>
> 31-30
>
> </td>
> <td>
>
>
> 00 - no parameters: uses \_IO macro 10 - read: \_IOR 01 - write: \_IOW 11 - read/write: \_IOWR
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> 29-16
>
> </td>
> <td>
>
>
> size of arguments
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> 15-8
>
> </td>
> <td>
>
>
> ascii character supposedly unique to each driver
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> 7-0
>
> </td>
> <td>
>
>
> function \#
>
> </td>
> </tr>
> </tbody>
> </table>

So for example 0x82187201 is a read with arg length of 0x218, character 'r' function 1. Grepping the source reveals this is:



```text
#define VFAT_IOCTL_READDIR_BOTH         _IOR('r', 1, struct dirent [2])
```

---

# Ioctl Numbers

_Peios Kernel / Userspace interfaces / System and device interfaces / ioctl conventions_

> 19 October 1999

<a id="rst-ioctl-numbers"></a>

19 October 1999

Michael Elizabeth Chastain &lt;[mec@shout.net](<mailto:mec@shout.net>)&gt;

If you are adding new ioctl's to the kernel, you should use the \_IO macros defined in &lt;linux/ioctl.h&gt;:

>
> <table>
> <thead>
> <tr>
> <th>
>
>
> macro
>
> </th>
> <th>
>
>
> parameters
>
> </th>
> </tr>
> </thead>
> <tbody>
> <tr>
> <td>
>
>
> \_IO
>
> </td>
> <td>
>
>
> none
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> \_IOW
>
> </td>
> <td>
>
>
> write (read from userspace)
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> \_IOR
>
> </td>
> <td>
>
>
> read (write to userspace)
>
> </td>
> </tr>
> <tr>
> <td>
>
>
> \_IOWR
>
> </td>
> <td>
>
>
> write and read
>
> </td>
> </tr>
> </tbody>
> </table>

'Write' and 'read' are from the user's point of view, just like the system calls 'write' and 'read'.  For example, a SET_FOO ioctl would be \_IOW, although the kernel would actually read data from user space; a GET_FOO ioctl would be \_IOR, although the kernel would actually write data to user space.

The first argument to the macros is an identifying letter or number from the table below. Because of the large number of drivers, many drivers share a partial letter with other drivers.

If you are writing a driver for a new device and need a letter, pick an unused block with enough room for expansion: 32 to 256 ioctl commands should suffice. You can register the block by patching this file and submitting the patch through [usual patch submission process](</kernel/development/process/submitting-patches.md>).

The second argument is a sequence number to distinguish ioctls from each other. The third argument (not applicable to \_IO) is the type of the data going into the kernel or coming out of the kernel (e.g.  'int' or 'struct foo').

> [!NOTE]
>
> Do NOT use sizeof(arg) as the third argument as this results in your ioctl thinking it passes an argument of type size_t.

Some devices use their major number as the identifier; this is OK, as long as it is unique.  Some devices are irregular and don't follow any convention at all.

Following this convention is good because:

1. Keeping the ioctl's globally unique helps error checking: if a program calls an ioctl on the wrong device, it will get an error rather than some unexpected behaviour.

2. The 'strace' build procedure automatically finds ioctl numbers defined with the macros.

3. 'strace' can decode numbers back into useful names when the numbers are unique.

4. People looking for ioctls can grep for them more easily when this convention is used to define the ioctl numbers.

5. When following the convention, the driver code can use generic code to copy the parameters between user and kernel space.

This table lists ioctls visible from userland, excluding ones from drivers/staging/.


<table>
<thead>
<tr>
<th>


Code

</th>
<th>


Seq\# (hex)

</th>
<th>


Include File

</th>
<th>


Comments

</th>
</tr>
</thead>
<tbody>
<tr>
<td>


0x00

</td>
<td>


00-1F

</td>
<td>


linux/fs.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


0x00

</td>
<td>


00-1F

</td>
<td>


scsi/scsi_ioctl.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


0x00

</td>
<td>


00-1F

</td>
<td>


linux/fb.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


0x00

</td>
<td>


00-1F

</td>
<td>


linux/wavefront.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


0x02

</td>
<td>


all

</td>
<td>


linux/fd.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0x03

</td>
<td>


all

</td>
<td>


linux/hdreg.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0x04

</td>
<td>


D2-DC

</td>
<td>


linux/umsdos_fs.h

</td>
<td>


Dead since 2.6.11, but don't reuse these.

</td>
</tr>
<tr>
<td>


0x06

</td>
<td>


all

</td>
<td>


linux/lp.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0x07

</td>
<td>


9F-D0

</td>
<td>


linux/vmw_vmci_defs.h, uapi/linux/vm_sockets.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0x09

</td>
<td>


all

</td>
<td>


linux/raid/md_u.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0x10

</td>
<td>


00-0F

</td>
<td>


drivers/char/s390/vmcp.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0x10

</td>
<td>


10-1F

</td>
<td>


arch/s390/include/uapi/sclp_ctl.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0x10

</td>
<td>


20-2F

</td>
<td>


arch/s390/include/uapi/asm/hypfs.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0x12

</td>
<td>


all

</td>
<td>


linux/fs.h linux/blkpg.h linux/blkzoned.h linux/blk-crypto.h

</td>
<td>


BLK\* ioctls

</td>
</tr>
<tr>
<td>


0x15

</td>
<td>


all

</td>
<td>


linux/fs.h

</td>
<td>


FS_IOC\_\* ioctls

</td>
</tr>
<tr>
<td>


0x1b

</td>
<td>


all

</td>
<td>




</td>
<td>


InfiniBand Subsystem &lt;[http://infiniband.sourceforge.net/](<http://infiniband.sourceforge.net/>)&gt;

</td>
</tr>
<tr>
<td>


0x20

</td>
<td>


all

</td>
<td>


drivers/cdrom/cm206.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0x22

</td>
<td>


all

</td>
<td>


scsi/sg.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0x3E

</td>
<td>


00-0F

</td>
<td>


linux/counter.h

</td>
<td>


&lt;[mailto:linux-iio@vger.kernel.org](<mailto:linux-iio@vger.kernel.org>)&gt;

</td>
</tr>
<tr>
<td>


'\!'

</td>
<td>


00-1F

</td>
<td>


uapi/linux/seccomp.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'\#'

</td>
<td>


00-3F

</td>
<td>




</td>
<td>


IEEE 1394 Subsystem Block for the entire subsystem

</td>
</tr>
<tr>
<td>


'$'

</td>
<td>


00-0F

</td>
<td>


linux/perf_counter.h, linux/perf_event.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'%'

</td>
<td>


00-0F

</td>
<td>


include/uapi/linux/stm.h

</td>
<td>


System Trace Module subsystem &lt;[mailto:alexander.shishkin@linux.intel.com](<mailto:alexander.shishkin@linux.intel.com>)&gt;

</td>
</tr>
<tr>
<td>


'&amp;'

</td>
<td>


00-07

</td>
<td>


drivers/firewire/nosy-user.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'\*'

</td>
<td>


00-1F

</td>
<td>


uapi/linux/user_events.h

</td>
<td>


User Events Subsystem &lt;[mailto:linux-trace-kernel@vger.kernel.org](<mailto:linux-trace-kernel@vger.kernel.org>)&gt;

</td>
</tr>
<tr>
<td>


'1'

</td>
<td>


00-1F

</td>
<td>


linux/timepps.h

</td>
<td>


PPS kit from Ulrich Windl &lt;[ftp://ftp.de.kernel.org/pub/linux/daemons/ntp/PPS/](<ftp://ftp.de.kernel.org/pub/linux/daemons/ntp/PPS/>)&gt;

</td>
</tr>
<tr>
<td>


'2'

</td>
<td>


01-04

</td>
<td>


linux/i2o.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'3'

</td>
<td>


00-0F

</td>
<td>


drivers/s390/char/raw3270.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'3'

</td>
<td>


00-1F

</td>
<td>


linux/suspend_ioctls.h, kernel/power/user.c

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'8'

</td>
<td>


all

</td>
<td>




</td>
<td>


SNP8023 advanced NIC card &lt;[mailto:mcr@solidum.com](<mailto:mcr@solidum.com>)&gt;

</td>
</tr>
<tr>
<td>


';'

</td>
<td>


64-7F

</td>
<td>


linux/vfio.h

</td>
<td>




</td>
</tr>
<tr>
<td>


';'

</td>
<td>


80-FF

</td>
<td>


linux/iommufd.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'='

</td>
<td>


00-3f

</td>
<td>


uapi/linux/ptp_clock.h

</td>
<td>


&lt;[mailto:richardcochran@gmail.com](<mailto:richardcochran@gmail.com>)&gt;

</td>
</tr>
<tr>
<td>


'@'

</td>
<td>


00-0F

</td>
<td>


linux/radeonfb.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'@'

</td>
<td>


00-0F

</td>
<td>


drivers/video/aty/aty128fb.c

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'A'

</td>
<td>


00-1F

</td>
<td>


linux/apm_bios.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'A'

</td>
<td>


00-0F

</td>
<td>


linux/agpgart.h, drivers/char/agp/compat_ioctl.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'A'

</td>
<td>


00-7F

</td>
<td>


sound/asound.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'B'

</td>
<td>


00-1F

</td>
<td>


linux/cciss_ioctl.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'B'

</td>
<td>


00-0F

</td>
<td>


include/linux/pmu.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'B'

</td>
<td>


C0-FF

</td>
<td>


advanced bbus

</td>
<td>


&lt;[mailto:maassen@uni-freiburg.de](<mailto:maassen@uni-freiburg.de>)&gt;

</td>
</tr>
<tr>
<td>


'B'

</td>
<td>


00-0F

</td>
<td>


xen/xenbus_dev.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'C'

</td>
<td>


all

</td>
<td>


linux/soundcard.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'C'

</td>
<td>


01-2F

</td>
<td>


linux/capi.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'C'

</td>
<td>


F0-FF

</td>
<td>


drivers/net/wan/cosa.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'D'

</td>
<td>


all

</td>
<td>


arch/s390/include/asm/dasd.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'D'

</td>
<td>


40-5F

</td>
<td>


drivers/scsi/dpt/dtpi_ioctl.h

</td>
<td>


Dead since 2022

</td>
</tr>
<tr>
<td>


'D'

</td>
<td>


05

</td>
<td>


drivers/scsi/pmcraid.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'E'

</td>
<td>


all

</td>
<td>


linux/input.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'E'

</td>
<td>


00-0F

</td>
<td>


xen/evtchn.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'F'

</td>
<td>


all

</td>
<td>


linux/fb.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'F'

</td>
<td>


01-02

</td>
<td>


drivers/scsi/pmcraid.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'F'

</td>
<td>


20

</td>
<td>


drivers/video/fsl-diu-fb.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'F'

</td>
<td>


20

</td>
<td>


linux/ivtvfb.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'F'

</td>
<td>


20

</td>
<td>


linux/matroxfb.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'F'

</td>
<td>


20

</td>
<td>


drivers/video/aty/atyfb_base.c

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'F'

</td>
<td>


00-0F

</td>
<td>


video/da8xx-fb.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'F'

</td>
<td>


80-8F

</td>
<td>


linux/arcfb.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'F'

</td>
<td>


DD

</td>
<td>


video/sstfb.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'G'

</td>
<td>


00-3F

</td>
<td>


drivers/misc/sgi-gru/grulib.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'G'

</td>
<td>


00-0F

</td>
<td>


xen/gntalloc.h, xen/gntdev.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


00-7F

</td>
<td>


linux/hiddev.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


00-0F

</td>
<td>


linux/hidraw.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


01

</td>
<td>


linux/mei.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


02

</td>
<td>


linux/mei.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


03

</td>
<td>


linux/mei.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


00-0F

</td>
<td>


sound/asound.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


20-40

</td>
<td>


sound/asound_fm.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


80-8F

</td>
<td>


sound/sfnt_info.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


10-8F

</td>
<td>


sound/emu10k1.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


10-1F

</td>
<td>


sound/sb16_csp.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


10-1F

</td>
<td>


sound/hda_hwdep.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


40-4F

</td>
<td>


sound/hdspm.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


40-4F

</td>
<td>


sound/hdsp.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


90

</td>
<td>


sound/usb/usx2y/usb_stream.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


00-0F

</td>
<td>


uapi/misc/habanalabs.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


A0

</td>
<td>


uapi/linux/usb/cdc-wdm.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


C0-F0

</td>
<td>


net/bluetooth/hci.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


C0-DF

</td>
<td>


net/bluetooth/hidp/hidp.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


C0-DF

</td>
<td>


net/bluetooth/cmtp/cmtp.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


C0-DF

</td>
<td>


net/bluetooth/bnep/bnep.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


F1

</td>
<td>


linux/hid-roccat.h

</td>
<td>


&lt;[mailto:erazor_de@users.sourceforge.net](<mailto:erazor_de@users.sourceforge.net>)&gt;

</td>
</tr>
<tr>
<td>


'H'

</td>
<td>


F8-FA

</td>
<td>


sound/firewire.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'I'

</td>
<td>


all

</td>
<td>


linux/isdn.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'I'

</td>
<td>


00-0F

</td>
<td>


drivers/isdn/divert/isdn_divert.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'I'

</td>
<td>


40-4F

</td>
<td>


linux/mISDNif.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'K'

</td>
<td>


all

</td>
<td>


linux/kd.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'L'

</td>
<td>


00-1F

</td>
<td>


linux/loop.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'L'

</td>
<td>


10-1F

</td>
<td>


drivers/scsi/mpt3sas/mpt3sas_ctl.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'L'

</td>
<td>


E0-FF

</td>
<td>


linux/ppdd.h

</td>
<td>


encrypted disk device driver &lt;[http://linux01.gwdg.de/\~alatham/ppdd.html](<http://linux01.gwdg.de/~alatham/ppdd.html>)&gt;

</td>
</tr>
<tr>
<td>


'M'

</td>
<td>


all

</td>
<td>


linux/soundcard.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'M'

</td>
<td>


01-16 and

</td>
<td>


mtd/mtd-abi.h drivers/mtd/mtdchar.c

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'M'

</td>
<td>


01-03

</td>
<td>


drivers/scsi/megaraid/megaraid_sas.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'M'

</td>
<td>


00-0F

</td>
<td>


drivers/video/fsl-diu-fb.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'N'

</td>
<td>


00-1F

</td>
<td>


drivers/usb/scanner.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'N'

</td>
<td>


40-7F

</td>
<td>


drivers/block/nvme.c

</td>
<td>




</td>
</tr>
<tr>
<td>


'N'

</td>
<td>


80-8F

</td>
<td>


uapi/linux/ntsync.h

</td>
<td>


NT synchronization primitives &lt;[mailto:wine-devel@winehq.org](<mailto:wine-devel@winehq.org>)&gt;

</td>
</tr>
<tr>
<td>


'O'

</td>
<td>


00-06

</td>
<td>


mtd/ubi-user.h

</td>
<td>


UBI

</td>
</tr>
<tr>
<td>


'P'

</td>
<td>


all

</td>
<td>


linux/soundcard.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'P'

</td>
<td>


60-6F

</td>
<td>


sound/sscape_ioctl.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'P'

</td>
<td>


00-0F

</td>
<td>


drivers/usb/class/usblp.c

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'P'

</td>
<td>


01-09

</td>
<td>


drivers/misc/pci_endpoint_test.c

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'P'

</td>
<td>


00-0F

</td>
<td>


xen/privcmd.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'P'

</td>
<td>


00-05

</td>
<td>


linux/tps6594_pfsm.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'Q'

</td>
<td>


all

</td>
<td>


linux/soundcard.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'R'

</td>
<td>


00-1F

</td>
<td>


linux/random.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'R'

</td>
<td>


01

</td>
<td>


linux/rfkill.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'R'

</td>
<td>


20-2F

</td>
<td>


linux/trace_mmap.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'R'

</td>
<td>


C0-DF

</td>
<td>


net/bluetooth/rfcomm.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'R'

</td>
<td>


E0

</td>
<td>


uapi/linux/fsl_mc.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'S'

</td>
<td>


all

</td>
<td>


linux/cdrom.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'S'

</td>
<td>


80-81

</td>
<td>


scsi/scsi_ioctl.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'S'

</td>
<td>


82-FF

</td>
<td>


scsi/scsi.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'S'

</td>
<td>


00-7F

</td>
<td>


sound/asequencer.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'T'

</td>
<td>


all

</td>
<td>


linux/soundcard.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'T'

</td>
<td>


00-AF

</td>
<td>


sound/asound.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'T'

</td>
<td>


all

</td>
<td>


arch/x86/include/asm/ioctls.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'T'

</td>
<td>


C0-DF

</td>
<td>


linux/if_tun.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'U'

</td>
<td>


all

</td>
<td>


sound/asound.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'U'

</td>
<td>


00-CF

</td>
<td>


linux/uinput.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'U'

</td>
<td>


00-EF

</td>
<td>


linux/usbdevice_fs.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'U'

</td>
<td>


C0-CF

</td>
<td>


drivers/bluetooth/hci_uart.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'V'

</td>
<td>


all

</td>
<td>


linux/vt.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'V'

</td>
<td>


all

</td>
<td>


linux/videodev2.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'V'

</td>
<td>


C0

</td>
<td>


linux/ivtvfb.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'V'

</td>
<td>


C0

</td>
<td>


linux/ivtv.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'V'

</td>
<td>


C0

</td>
<td>


media/si4713.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'W'

</td>
<td>


00-1F

</td>
<td>


linux/watchdog.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'W'

</td>
<td>


00-1F

</td>
<td>


linux/wanrouter.h

</td>
<td>


conflict\! (pre 3.9)

</td>
</tr>
<tr>
<td>


'W'

</td>
<td>


00-3F

</td>
<td>


sound/asound.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'W'

</td>
<td>


40-5F

</td>
<td>


drivers/pci/switch/switchtec.c

</td>
<td>




</td>
</tr>
<tr>
<td>


'W'

</td>
<td>


60-61

</td>
<td>


linux/watch_queue.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'X'

</td>
<td>


all

</td>
<td>


fs/xfs/xfs_fs.h, fs/xfs/linux-2.6/xfs_ioctl32.h, include/linux/falloc.h, linux/fs.h,

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'X'

</td>
<td>


all

</td>
<td>


fs/ocfs2/ocfs_fs.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'Z'

</td>
<td>


14-15

</td>
<td>


drivers/message/fusion/mptctl.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'\['

</td>
<td>


00-3F

</td>
<td>


linux/usb/tmc.h

</td>
<td>


USB Test and Measurement Devices &lt;[mailto:gregkh@linuxfoundation.org](<mailto:gregkh@linuxfoundation.org>)&gt;

</td>
</tr>
<tr>
<td>


'a'

</td>
<td>


all

</td>
<td>


linux/atm\*.h, linux/sonet.h

</td>
<td>


ATM on linux &lt;[http://lrcwww.epfl.ch/](<http://lrcwww.epfl.ch/>)&gt;

</td>
</tr>
<tr>
<td>


'a'

</td>
<td>


00-0F

</td>
<td>


drivers/crypto/qat/qat_common/adf_cfg_common.h

</td>
<td>


conflict\! qat driver

</td>
</tr>
<tr>
<td>


'b'

</td>
<td>


00-FF

</td>
<td>




</td>
<td>


conflict\! bit3 vme host bridge &lt;[mailto:natalia@nikhefk.nikhef.nl](<mailto:natalia@nikhefk.nikhef.nl>)&gt;

</td>
</tr>
<tr>
<td>


'b'

</td>
<td>


00-0F

</td>
<td>


linux/dma-buf.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'c'

</td>
<td>


00-7F

</td>
<td>


linux/comstats.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'c'

</td>
<td>


00-7F

</td>
<td>


linux/coda.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'c'

</td>
<td>


00-1F

</td>
<td>


linux/chio.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'c'

</td>
<td>


80-9F

</td>
<td>


arch/s390/include/asm/chsc.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'c'

</td>
<td>


A0-AF

</td>
<td>


arch/x86/include/asm/msr.h conflict\!

</td>
<td>




</td>
</tr>
<tr>
<td>


'd'

</td>
<td>


00-FF

</td>
<td>


linux/char/drm/drm.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'd'

</td>
<td>


02-40

</td>
<td>


pcmcia/ds.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'd'

</td>
<td>


F0-FF

</td>
<td>


linux/digi1.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'e'

</td>
<td>


all

</td>
<td>


linux/digi1.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'f'

</td>
<td>


00-1F

</td>
<td>


linux/ext2_fs.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'f'

</td>
<td>


00-1F

</td>
<td>


linux/ext3_fs.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'f'

</td>
<td>


00-0F

</td>
<td>


fs/jfs/jfs_dinode.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'f'

</td>
<td>


00-0F

</td>
<td>


fs/ext4/ext4.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'f'

</td>
<td>


00-0F

</td>
<td>


linux/fs.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'f'

</td>
<td>


00-0F

</td>
<td>


fs/ocfs2/ocfs2_fs.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'f'

</td>
<td>


13-27

</td>
<td>


linux/fscrypt.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'f'

</td>
<td>


81-8F

</td>
<td>


linux/fsverity.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'g'

</td>
<td>


00-0F

</td>
<td>


linux/usb/gadgetfs.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'g'

</td>
<td>


20-2F

</td>
<td>


linux/usb/g_printer.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'h'

</td>
<td>


00-7F

</td>
<td>




</td>
<td>


conflict\! Charon filesystem &lt;[mailto:zapman@interlan.net](<mailto:zapman@interlan.net>)&gt;

</td>
</tr>
<tr>
<td>


'h'

</td>
<td>


00-1F

</td>
<td>


linux/hpet.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'h'

</td>
<td>


80-8F

</td>
<td>


fs/hfsplus/ioctl.c

</td>
<td>




</td>
</tr>
<tr>
<td>


'i'

</td>
<td>


00-3F

</td>
<td>


linux/i2o-dev.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'i'

</td>
<td>


0B-1F

</td>
<td>


linux/ipmi.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'i'

</td>
<td>


80-8F

</td>
<td>


linux/i8k.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'i'

</td>
<td>


90-9F

</td>
<td>


`linux/iio/*.h`

</td>
<td>


IIO

</td>
</tr>
<tr>
<td>


'j'

</td>
<td>


00-3F

</td>
<td>


linux/joystick.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'k'

</td>
<td>


00-0F

</td>
<td>


linux/spi/spidev.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'k'

</td>
<td>


00-05

</td>
<td>


video/kyro.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'k'

</td>
<td>


10-17

</td>
<td>


linux/hsi/hsi_char.h

</td>
<td>


HSI character device

</td>
</tr>
<tr>
<td>


'l'

</td>
<td>


00-3F

</td>
<td>


linux/tcfs_fs.h

</td>
<td>


transparent cryptographic file system &lt;[http://web.archive.org/web/%2A/http://mikonos.dia.unisa.it/tcfs](<http://web.archive.org/web/%2A/http://mikonos.dia.unisa.it/tcfs>)&gt;

</td>
</tr>
<tr>
<td>


'l'

</td>
<td>


40-7F

</td>
<td>


linux/udf_fs_i.h

</td>
<td>


in development: &lt;[https://github.com/pali/udftools](<https://github.com/pali/udftools>)&gt;

</td>
</tr>
<tr>
<td>


'm'

</td>
<td>


00-09

</td>
<td>


linux/mmtimer.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'm'

</td>
<td>


all

</td>
<td>


linux/mtio.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'm'

</td>
<td>


all

</td>
<td>


linux/soundcard.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'm'

</td>
<td>


all

</td>
<td>


linux/synclink.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'm'

</td>
<td>


00-19

</td>
<td>


drivers/message/fusion/mptctl.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'm'

</td>
<td>


00

</td>
<td>


drivers/scsi/megaraid/megaraid_ioctl.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'n'

</td>
<td>


00-7F

</td>
<td>


linux/ncp_fs.h and fs/ncpfs/ioctl.c

</td>
<td>




</td>
</tr>
<tr>
<td>


'n'

</td>
<td>


80-8F

</td>
<td>


uapi/linux/nilfs2_api.h

</td>
<td>


NILFS2

</td>
</tr>
<tr>
<td>


'n'

</td>
<td>


E0-FF

</td>
<td>


linux/matroxfb.h

</td>
<td>


matroxfb

</td>
</tr>
<tr>
<td>


'o'

</td>
<td>


00-1F

</td>
<td>


fs/ocfs2/ocfs2_fs.h

</td>
<td>


OCFS2

</td>
</tr>
<tr>
<td>


'o'

</td>
<td>


00-03

</td>
<td>


mtd/ubi-user.h

</td>
<td>


conflict\! (OCFS2 and UBI overlaps)

</td>
</tr>
<tr>
<td>


'o'

</td>
<td>


40-41

</td>
<td>


mtd/ubi-user.h

</td>
<td>


UBI

</td>
</tr>
<tr>
<td>


'o'

</td>
<td>


01-A1

</td>
<td>


`linux/dvb/*.h`

</td>
<td>


DVB

</td>
</tr>
<tr>
<td>


'p'

</td>
<td>


00-0F

</td>
<td>


linux/phantom.h

</td>
<td>


conflict\! (OpenHaptics needs this)

</td>
</tr>
<tr>
<td>


'p'

</td>
<td>


00-1F

</td>
<td>


linux/rtc.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'p'

</td>
<td>


40-7F

</td>
<td>


linux/nvram.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'p'

</td>
<td>


80-9F

</td>
<td>


linux/ppdev.h

</td>
<td>


user-space parport &lt;[mailto:tim@cyberelk.net](<mailto:tim@cyberelk.net>)&gt;

</td>
</tr>
<tr>
<td>


'p'

</td>
<td>


A1-A5

</td>
<td>


linux/pps.h

</td>
<td>


LinuxPPS

</td>
</tr>
<tr>
<td>


'p'

</td>
<td>


B1-B3

</td>
<td>


linux/pps_gen.h

</td>
<td>


LinuxPPS &lt;[mailto:giometti@linux.it](<mailto:giometti@linux.it>)&gt;

</td>
</tr>
<tr>
<td>


'q'

</td>
<td>


00-1F

</td>
<td>


linux/serio.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'q'

</td>
<td>


80-FF

</td>
<td>


linux/telephony.h linux/ixjuser.h

</td>
<td>


Internet PhoneJACK, Internet LineJACK &lt;[http://web.archive.org/web/%2A/http://www.quicknet.net](<http://web.archive.org/web/%2A/http://www.quicknet.net>)&gt;

</td>
</tr>
<tr>
<td>


'r'

</td>
<td>


00-1F

</td>
<td>


linux/msdos_fs.h and fs/fat/dir.c

</td>
<td>




</td>
</tr>
<tr>
<td>


's'

</td>
<td>


all

</td>
<td>


linux/cdk.h

</td>
<td>




</td>
</tr>
<tr>
<td>


't'

</td>
<td>


00-7F

</td>
<td>


linux/ppp-ioctl.h

</td>
<td>




</td>
</tr>
<tr>
<td>


't'

</td>
<td>


80-8F

</td>
<td>


linux/isdn_ppp.h

</td>
<td>




</td>
</tr>
<tr>
<td>


't'

</td>
<td>


90-91

</td>
<td>


linux/toshiba.h

</td>
<td>


toshiba and toshiba_acpi SMM

</td>
</tr>
<tr>
<td>


'u'

</td>
<td>


00-1F

</td>
<td>


linux/smb_fs.h

</td>
<td>


gone

</td>
</tr>
<tr>
<td>


'u'

</td>
<td>


00-2F

</td>
<td>


linux/ublk_cmd.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'u'

</td>
<td>


20-3F

</td>
<td>


linux/uvcvideo.h

</td>
<td>


USB video class host driver

</td>
</tr>
<tr>
<td>


'u'

</td>
<td>


40-4f

</td>
<td>


linux/udmabuf.h

</td>
<td>


userspace dma-buf misc device

</td>
</tr>
<tr>
<td>


'v'

</td>
<td>


00-1F

</td>
<td>


linux/ext2_fs.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'v'

</td>
<td>


00-1F

</td>
<td>


linux/fs.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'v'

</td>
<td>


00-0F

</td>
<td>


linux/sonypi.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'v'

</td>
<td>


00-0F

</td>
<td>


media/v4l2-subdev.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'v'

</td>
<td>


20-27

</td>
<td>


arch/powerpc/include/uapi/asm/vas-api.h

</td>
<td>


VAS API

</td>
</tr>
<tr>
<td>


'v'

</td>
<td>


C0-FF

</td>
<td>


linux/meye.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'w'

</td>
<td>


all

</td>
<td>




</td>
<td>


CERN SCI driver

</td>
</tr>
<tr>
<td>


'y'

</td>
<td>


00-1F

</td>
<td>




</td>
<td>


packet based user level communications &lt;[mailto:zapman@interlan.net](<mailto:zapman@interlan.net>)&gt;

</td>
</tr>
<tr>
<td>


'z'

</td>
<td>


00-3F

</td>
<td>




</td>
<td>


CAN bus card conflict\! &lt;[mailto:hdstich@connectu.ulm.circular.de](<mailto:hdstich@connectu.ulm.circular.de>)&gt;

</td>
</tr>
<tr>
<td>


'z'

</td>
<td>


40-7F

</td>
<td>




</td>
<td>


CAN bus card conflict\! &lt;[mailto:oe@port.de](<mailto:oe@port.de>)&gt;

</td>
</tr>
<tr>
<td>


'z'

</td>
<td>


10-4F

</td>
<td>


drivers/s390/crypto/zcrypt_api.h

</td>
<td>


conflict\!

</td>
</tr>
<tr>
<td>


'\|'

</td>
<td>


00-7F

</td>
<td>


linux/media.h

</td>
<td>




</td>
</tr>
<tr>
<td>


'\|'

</td>
<td>


80-9F

</td>
<td>


samples/

</td>
<td>


Any sample and example drivers

</td>
</tr>
<tr>
<td>


0x80

</td>
<td>


00-1F

</td>
<td>


linux/fb.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0x81

</td>
<td>


00-1F

</td>
<td>


linux/vduse.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0x89

</td>
<td>


00-06

</td>
<td>


arch/x86/include/asm/sockios.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0x89

</td>
<td>


0B-DF

</td>
<td>


linux/sockios.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0x89

</td>
<td>


E0-EF

</td>
<td>


linux/sockios.h

</td>
<td>


SIOCPROTOPRIVATE range

</td>
</tr>
<tr>
<td>


0x89

</td>
<td>


F0-FF

</td>
<td>


linux/sockios.h

</td>
<td>


SIOCDEVPRIVATE range

</td>
</tr>
<tr>
<td>


0x8A

</td>
<td>


00-1F

</td>
<td>


linux/eventpoll.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0x8B

</td>
<td>


all

</td>
<td>


linux/wireless.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0x8C

</td>
<td>


00-3F

</td>
<td>




</td>
<td>


WiNRADiO driver &lt;[http://www.winradio.com.au/](<http://www.winradio.com.au/>)&gt;

</td>
</tr>
<tr>
<td>


0x90

</td>
<td>


00

</td>
<td>


drivers/cdrom/sbpcd.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0x92

</td>
<td>


00-0F

</td>
<td>


drivers/usb/mon/mon_bin.c

</td>
<td>




</td>
</tr>
<tr>
<td>


0x93

</td>
<td>


60-7F

</td>
<td>


linux/auto_fs.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0x94

</td>
<td>


all

</td>
<td>


fs/btrfs/ioctl.h and linux/fs.h

</td>
<td>


Btrfs filesystem some lifted to vfs/generic

</td>
</tr>
<tr>
<td>


0x97

</td>
<td>


00-7F

</td>
<td>


fs/ceph/ioctl.h

</td>
<td>


Ceph file system

</td>
</tr>
<tr>
<td>


0x99

</td>
<td>


00-0F

</td>
<td>




</td>
<td>


537-Addinboard driver &lt;[mailto:buk@buks.ipn.de](<mailto:buk@buks.ipn.de>)&gt;

</td>
</tr>
<tr>
<td>


0x9A

</td>
<td>


00-0F

</td>
<td>


include/uapi/fwctl/fwctl.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0xA0

</td>
<td>


all

</td>
<td>


linux/sdp/sdp.h

</td>
<td>


Industrial Device Project &lt;[mailto:kenji@bitgate.com](<mailto:kenji@bitgate.com>)&gt;

</td>
</tr>
<tr>
<td>


0xA1

</td>
<td>


0

</td>
<td>


linux/vtpm_proxy.h

</td>
<td>


TPM Emulator Proxy Driver

</td>
</tr>
<tr>
<td>


0xA2

</td>
<td>


all

</td>
<td>


uapi/linux/acrn.h

</td>
<td>


ACRN hypervisor

</td>
</tr>
<tr>
<td>


0xA3

</td>
<td>


80-8F

</td>
<td>




</td>
<td>


Port ACL  in development: &lt;[mailto:tlewis@mindspring.com](<mailto:tlewis@mindspring.com>)&gt;

</td>
</tr>
<tr>
<td>


0xA3

</td>
<td>


90-9F

</td>
<td>


linux/dtlk.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0xA4

</td>
<td>


00-1F

</td>
<td>


uapi/linux/tee.h

</td>
<td>


Generic TEE subsystem

</td>
</tr>
<tr>
<td>


0xA4

</td>
<td>


00-1F

</td>
<td>


uapi/asm/sgx.h

</td>
<td>


&lt;[mailto:linux-sgx@vger.kernel.org](<mailto:linux-sgx@vger.kernel.org>)&gt;

</td>
</tr>
<tr>
<td>


0xA5

</td>
<td>


01-05

</td>
<td>


linux/surface_aggregator/cdev.h

</td>
<td>


Microsoft Surface Platform System Aggregator &lt;[mailto:luzmaximilian@gmail.com](<mailto:luzmaximilian@gmail.com>)&gt;

</td>
</tr>
<tr>
<td>


0xA5

</td>
<td>


20-2F

</td>
<td>


linux/surface_aggregator/dtx.h

</td>
<td>


Microsoft Surface DTX driver &lt;[mailto:luzmaximilian@gmail.com](<mailto:luzmaximilian@gmail.com>)&gt;

</td>
</tr>
<tr>
<td>


0xAA

</td>
<td>


00-3F

</td>
<td>


linux/uapi/linux/userfaultfd.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0xAB

</td>
<td>


00-1F

</td>
<td>


linux/nbd.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0xAC

</td>
<td>


00-1F

</td>
<td>


linux/raw.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0xAD

</td>
<td>


00

</td>
<td>




</td>
<td>


Netfilter device in development: &lt;[mailto:rusty@rustcorp.com.au](<mailto:rusty@rustcorp.com.au>)&gt;

</td>
</tr>
<tr>
<td>


0xAE

</td>
<td>


00-1F

</td>
<td>


linux/kvm.h

</td>
<td>


Kernel-based Virtual Machine &lt;[mailto:kvm@vger.kernel.org](<mailto:kvm@vger.kernel.org>)&gt;

</td>
</tr>
<tr>
<td>


0xAE

</td>
<td>


40-FF

</td>
<td>


linux/kvm.h

</td>
<td>


Kernel-based Virtual Machine &lt;[mailto:kvm@vger.kernel.org](<mailto:kvm@vger.kernel.org>)&gt;

</td>
</tr>
<tr>
<td>


0xAE

</td>
<td>


20-3F

</td>
<td>


linux/nitro_enclaves.h

</td>
<td>


Nitro Enclaves

</td>
</tr>
<tr>
<td>


0xAF

</td>
<td>


00-1F

</td>
<td>


linux/fsl_hypervisor.h

</td>
<td>


Freescale hypervisor

</td>
</tr>
<tr>
<td>


0xB0

</td>
<td>


all

</td>
<td>




</td>
<td>


RATIO devices in development: &lt;[mailto:vgo@ratio.de](<mailto:vgo@ratio.de>)&gt;

</td>
</tr>
<tr>
<td>


0xB1

</td>
<td>


00-1F

</td>
<td>




</td>
<td>


PPPoX &lt;[mailto:mostrows@styx.uwaterloo.ca](<mailto:mostrows@styx.uwaterloo.ca>)&gt;

</td>
</tr>
<tr>
<td>


0xB2

</td>
<td>


00

</td>
<td>


arch/powerpc/include/uapi/asm/papr-vpd.h

</td>
<td>


powerpc/pseries VPD API &lt;[mailto:linuxppc-dev@lists.ozlabs.org](<mailto:linuxppc-dev@lists.ozlabs.org>)&gt;

</td>
</tr>
<tr>
<td>


0xB2

</td>
<td>


01-02

</td>
<td>


arch/powerpc/include/uapi/asm/papr-sysparm.h

</td>
<td>


powerpc/pseries system parameter API &lt;[mailto:linuxppc-dev@lists.ozlabs.org](<mailto:linuxppc-dev@lists.ozlabs.org>)&gt;

</td>
</tr>
<tr>
<td>


0xB2

</td>
<td>


03-05

</td>
<td>


arch/powerpc/include/uapi/asm/papr-indices.h

</td>
<td>


powerpc/pseries indices API &lt;[mailto:linuxppc-dev@lists.ozlabs.org](<mailto:linuxppc-dev@lists.ozlabs.org>)&gt;

</td>
</tr>
<tr>
<td>


0xB2

</td>
<td>


06-07

</td>
<td>


arch/powerpc/include/uapi/asm/papr-platform-dump.h

</td>
<td>


powerpc/pseries Platform Dump API &lt;[mailto:linuxppc-dev@lists.ozlabs.org](<mailto:linuxppc-dev@lists.ozlabs.org>)&gt;

</td>
</tr>
<tr>
<td>


0xB2

</td>
<td>


08

</td>
<td>


arch/powerpc/include/uapi/asm/papr-physical-attestation.h

</td>
<td>


powerpc/pseries Physical Attestation API &lt;[mailto:linuxppc-dev@lists.ozlabs.org](<mailto:linuxppc-dev@lists.ozlabs.org>)&gt;

</td>
</tr>
<tr>
<td>


0xB2

</td>
<td>


09

</td>
<td>


arch/powerpc/include/uapi/asm/papr-hvpipe.h

</td>
<td>


powerpc/pseries HVPIPE API &lt;[mailto:linuxppc-dev@lists.ozlabs.org](<mailto:linuxppc-dev@lists.ozlabs.org>)&gt;

</td>
</tr>
<tr>
<td>


0xB3

</td>
<td>


00

</td>
<td>


linux/mmc/ioctl.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0xB4

</td>
<td>


00-0F

</td>
<td>


linux/gpio.h

</td>
<td>


&lt;[mailto:linux-gpio@vger.kernel.org](<mailto:linux-gpio@vger.kernel.org>)&gt;

</td>
</tr>
<tr>
<td>


0xB5

</td>
<td>


00-0F

</td>
<td>


uapi/linux/rpmsg.h

</td>
<td>


&lt;[mailto:linux-remoteproc@vger.kernel.org](<mailto:linux-remoteproc@vger.kernel.org>)&gt;

</td>
</tr>
<tr>
<td>


0xB6

</td>
<td>


all

</td>
<td>


linux/fpga-dfl.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0xB7

</td>
<td>


all

</td>
<td>


uapi/linux/remoteproc_cdev.h

</td>
<td>


&lt;[mailto:linux-remoteproc@vger.kernel.org](<mailto:linux-remoteproc@vger.kernel.org>)&gt;

</td>
</tr>
<tr>
<td>


0xB7

</td>
<td>


all

</td>
<td>


uapi/linux/nsfs.h

</td>
<td>


&lt;[mailto:Andrei](<mailto:Andrei>) Vagin &lt;[avagin@openvz.org](<mailto:avagin@openvz.org>)&gt;&gt;

</td>
</tr>
<tr>
<td>


0xB8

</td>
<td>


01-02

</td>
<td>


uapi/misc/mrvl_cn10k_dpi.h

</td>
<td>


Marvell CN10K DPI driver

</td>
</tr>
<tr>
<td>


0xB8

</td>
<td>


all

</td>
<td>


uapi/linux/mshv.h

</td>
<td>


Microsoft Hyper-V /dev/mshv driver &lt;[mailto:linux-hyperv@vger.kernel.org](<mailto:linux-hyperv@vger.kernel.org>)&gt;

</td>
</tr>
<tr>
<td>


0xBA

</td>
<td>


00-0F

</td>
<td>


uapi/linux/liveupdate.h

</td>
<td>


Pasha Tatashin &lt;[mailto:pasha.tatashin@soleen.com](<mailto:pasha.tatashin@soleen.com>)&gt;

</td>
</tr>
<tr>
<td>


0xC0

</td>
<td>


00-0F

</td>
<td>


linux/usb/iowarrior.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0xCA

</td>
<td>


00-0F

</td>
<td>


uapi/misc/cxl.h

</td>
<td>


Dead since 6.15

</td>
</tr>
<tr>
<td>


0xCA

</td>
<td>


10-2F

</td>
<td>


uapi/misc/ocxl.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0xCA

</td>
<td>


80-BF

</td>
<td>


uapi/scsi/cxlflash_ioctl.h

</td>
<td>


Dead since 6.15

</td>
</tr>
<tr>
<td>


0xCB

</td>
<td>


00-1F

</td>
<td>




</td>
<td>


CBM serial IEC bus in development: &lt;[mailto:michael.klein@puffin.lb.shuttle.de](<mailto:michael.klein@puffin.lb.shuttle.de>)&gt;

</td>
</tr>
<tr>
<td>


0xCC

</td>
<td>


00-0F

</td>
<td>


drivers/misc/ibmvmc.h

</td>
<td>


pseries VMC driver

</td>
</tr>
<tr>
<td>


0xCD

</td>
<td>


01

</td>
<td>


linux/reiserfs_fs.h

</td>
<td>


Dead since 6.13

</td>
</tr>
<tr>
<td>


0xCE

</td>
<td>


01-02

</td>
<td>


uapi/linux/cxl_mem.h

</td>
<td>


Compute Express Link Memory Devices

</td>
</tr>
<tr>
<td>


0xCF

</td>
<td>


02

</td>
<td>


fs/smb/client/cifs_ioctl.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0xDD

</td>
<td>


00-3F

</td>
<td>




</td>
<td>


ZFCP device driver see drivers/s390/scsi/ &lt;[mailto:aherrman@de.ibm.com](<mailto:aherrman@de.ibm.com>)&gt;

</td>
</tr>
<tr>
<td>


0xE5

</td>
<td>


00-3F

</td>
<td>


linux/fuse.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0xEC

</td>
<td>


00-01

</td>
<td>


drivers/platform/chrome/cros_ec_dev.h

</td>
<td>


ChromeOS EC driver

</td>
</tr>
<tr>
<td>


0xEE

</td>
<td>


00-09

</td>
<td>


uapi/linux/pfrut.h

</td>
<td>


Platform Firmware Runtime Update and Telemetry

</td>
</tr>
<tr>
<td>


0xF3

</td>
<td>


00-3F

</td>
<td>


drivers/usb/misc/sisusbvga/sisusb.h

</td>
<td>


sisfb (in development) &lt;[mailto:thomas@winischhofer.net](<mailto:thomas@winischhofer.net>)&gt;

</td>
</tr>
<tr>
<td>


0xF6

</td>
<td>


all

</td>
<td>




</td>
<td>


LTTng Linux Trace Toolkit Next Generation &lt;[mailto:mathieu.desnoyers@efficios.com](<mailto:mathieu.desnoyers@efficios.com>)&gt;

</td>
</tr>
<tr>
<td>


0xF8

</td>
<td>


all

</td>
<td>


arch/x86/include/uapi/asm/amd_hsmp.h

</td>
<td>


AMD HSMP EPYC system management interface driver &lt;[mailto:nchatrad@amd.com](<mailto:nchatrad@amd.com>)&gt;

</td>
</tr>
<tr>
<td>


0xF9

</td>
<td>


00-0F

</td>
<td>


uapi/misc/amd-apml.h

</td>
<td>


AMD side band system management interface driver &lt;[mailto:naveenkrishna.chatradhi@amd.com](<mailto:naveenkrishna.chatradhi@amd.com>)&gt;

</td>
</tr>
<tr>
<td>


0xFD

</td>
<td>


all

</td>
<td>


linux/dm-ioctl.h

</td>
<td>




</td>
</tr>
<tr>
<td>


0xFE

</td>
<td>


all

</td>
<td>


linux/isst_if.h

</td>
<td>




</td>
</tr>
</tbody>
</table>
