CSE 131 Lecture Notes - Lecture 19: Device Driver, Programmable Interrupt Controller, User Space
Document Summary
*blue text is to set up the service procedure, green is the useful line that runs the service procedure (process the interrupt), red text is to prepare the next thing (process or something else) Device drivers go between device controllers and rest of os. Drivers standardize interface to widely varied devices. Device drivers communicate with controllers over bus. Device-independent i/o software device - independent i/o software provides common library routines for i/o software. Helps drivers maintain a standard appearance to the rest of the. Uniform interface for many device drivers for. Device-independent block size (keep track of blocks) User program is represented as the circle. First approach: when anything is read from the disk (input), it"s passed through the kernel space to the user program. Problem: if the user program is not ready to collect the data that"s passed, the data will just be sent and not collected. Second approach: buffer in the user space.