rtapi_inb3rtapi
Perform hardware i/o
Part of rtapi_outb(3rtapi).
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.