rtapi_outb(3rtapi)

rtapi_outb3rtapi

Perform hardware i/o

Usage

void rtapi_outb(unsigned char byte, unsigned int port)

unsigned char rtapi_inb(unsigned int port)

Arguments

port

The address of the I/O port

byte

The byte to be written to the port

Overview

rtapi_outb writes a byte to a hardware I/O port. rtapi_inb reads a byte from a hardware I/O port.

Realtime considerations

May be called from init/cleanup code and from within realtime tasks. Not available in non-realtime components.

Return value

rtapi_inb returns the byte read from the given I/O port

Notes

The I/O address should be within a region previously allocated by rtapi_request_region. Otherwise, another real-time module or the Linux kernel might attempt to access the I/O region at the same time.

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

From linuxcnc-uspace-dev 1:2.9.4-2+deb13u1 in Debian 13 (Trixie). Parsed by carta from the page's man source.