SGI TPL (Linux: Developer/Lx_KMPG – Talking to Device Files (writes and IOCTLs))

Device files are supposed to represent physical devices. Most physical devices are used for output as well as input, so there has to be some mechanism for device drivers in the kernel to get the output to send to the device from processes. This is done by opening the device file for output and writing to it, just like writing to a file. In the following example, this is implemented by device_write.

SGI TPL (Linux: Developer/Lx_KMPG – Talking to Device Files (writes and IOCTLs))

Blogged with the Flock Browser

About the Author

Yogi

24 years of experience in various layers of software. Primarily experienced in system side software design and development on server management software. Interested in linux development in x86 and arm architecture.