Software supplying device-specific operations behind an operating system interface. For these examples its responsibilities include DMA setup and completion handling, or checking status for polled input-output. [ref]
https://pages.cs.wisc.edu/~remzi/OSTEP/file-devices.pdf. Arpaci-Dusseau and Arpaci-Dusseau, OSTEP chapter 36, section 36.7: the driver abstraction
A device driver protocol giving each accepted client request its own fresh hardware conversion. A single driver owns the device registers, queues requests, starts one conversion, waits for its completion, reads the result and replies to the identified requester before starting the next conversion. Sender identity and a per-call token prevent reply confusion. A FIFO queue prevents later accepted requests from overtaking earlier ones.
Safety follows from at most one active conversion and exclusive register ownership. Starvation freedom additionally needs finite conversion time, eventual interrupt delivery, fair request acceptance and scheduling, and clients ready to receive their replies. These are progress assumptions, not consequences of mutual exclusion alone.
A device-driver process executes device-management logic as an operating-system process, communicating with clients through an inter-process interface. A microkernel can grant that process access to selected device registers, memory regions and interrupt notifications while keeping unrelated application address spaces separate. The device driver supplies hardware-specific operations; the kernel need only mediate the permitted resources and communication.
For a sensor, a client sends a request, the driver starts a conversion, an interrupt announces completion and the driver returns the measured result to that client. Concurrent requests need identifiers and an ordering rule so that replies cannot be exchanged accidentally. A driver in a separate process can improve fault containment, but it still needs correct memory/DMA permissions and recovery behavior. The seL4 Microkit documents explicit protection domains, mapped memory regions, interrupt handling and communication channels as concrete mechanisms for such component boundaries.[ref]
Articles by others on the same topic
There are currently no matching articles.