some very important text or definition
code/registers - monospace text in xv6
text important for context, or generally adding some good to know stuff
start of concept / pojem po Slovensky
generally less or equal importance as green text
Chapter 5 - Interrupts and device drivers
driver
- code in OS that manages a particular device
- configures HW, tells device to perform operations, handles interrupts, interacts with processes waiting for I/O from device
devintr() [kernel/trap.c]
- handles device interrupts as traps
- calls driver’s interrupt handler
device drivers
execute code in 2 context :
- a top half that runs process kernel thread
- called via syscalls like read & write
- may ask HW to start an operation, then waits for it to complete, after completion raises an interrupt
- a bottom half that executes interrupt time
- driver’s interrupt handler → figures out what operation has completed
- wakes up waiting process, tells HW to start work on next waiting operation
Chapter 5.1 - Code: Console input