The Linux Kernel/System

System means general functions used to support and manage other kernel functionality. Synonym: infrastructure.

Devices

ls /dev
cat /proc/devices
↑Jump back a section

Hardware interfaces

↑Jump back a section

I/O ports and registers

Modern functions for port I/O:

ioport_map

ioread8 iowrite8

ioread16 iowrite16

ioread32 iowrite32

#include <linux/ioport.h>

Functions for memory mapped registers:

ioremap

readb writeb

readw writew

readl writel

The {in,out}[bwl] macros are for emulating x86-style PCI/ISA IO space:

inb outb

inw outw

inl outl

↑Jump back a section

Hardware Device Drivers

Hardware Device Drivers are different from char and block devices.

or just Device Drivers

Keywords: kobjects, sysfs, buses, devices, drivers, classes, firmware, hotplug

↑Jump back a section

Busses: input, PCI, USB

Input bus: keyboard and mouse

cat /proc/bus/input/devices

PCI bus

pci_register_driver
lspci
cat /proc/pci
cat /proc/bus/pci/devices

USB bus

lsusb
cat /proc/bus/usb/devices
↑Jump back a section

Building and Updating

↑Jump back a section
Last modified on 9 November 2012, at 18:15