![]() ![]() ![]() However, block devices can be accessed the same was as character devices, the driver does the block management. Usual block size is 512 bytes or larger powers of two. Block devices, on the other hand, operate on blocks of data, not arbitrary bytes. Character devices can be compared to normal files in that we can read/write arbitrary bytes at a time (although for most part, seeking is not supported).They work with a stream of bytes. The devices in UNIX fall in two categories- Character devices and Block devices. The post helps understand how to write a device driver, the significance of a device file and its role in the interaction between a user program and device driver.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |