Using Resources
A DD must often use system resources (i.e., memory, I/O ports,
interrupt lines, and DMA channels).
- Memory:
kmalloc
kfree
GFP_KERNEL
- I/O ports: Linux has a request/free mechanism for
ports.
/proc/ioports (more later)
check_region
request_region
release_region
(NOTE: request_region always succeeds.)
- interrupt lines: Similar to handling ports, but
trickier. They get a page to themselves
Function definitions
Examples(s)