如 i386 ,在區別 I/O 空間和內存空間的進程的 I/O 空間寫入數據。
- outb() I/O 上寫入 8 位數據 ( 1 字節 );
- outw() I/O 上寫入 16 位數據 ( 2 字節 );
- outl () I/O 上寫入 32 位數據 ( 4 字節)。
引用#include <asm/io.h>
void outb (unsigned char data, unsigned short port);
void outw (unsigned short data, unsigned short port);
void outl (unsigned long data, unsigned short port);
變量:
- port I/O 地址
- data 數據