Four main types of Linux drivers-general Linux technology-Linux programming and kernel information. Character device: a device that uses the RST stream to access the device, such as a character terminal or serial port. It generally accesses the device sequentially, but it can also move the access pointer, such as a frame capture card.
Common development scenarios include touch screen, custom keyboard, video capturing device, and audio device.
Block device: devices that use data blocks, such as disks, can be accessed by mobile devices. The difference from character devices lies in the way the kernel internally manages data, such as using a cache mechanism. The mount file system must be supported.
Basically, you do not need to develop your own disks, optical disks, USB storage devices, and other Linux systems.
Network interface: The device accessed through data packet transmission, which is different from the above two. Use ifconfig to create and configure devices. The biggest difference between a network driver and a block driver is that the network driver accepts external data asynchronously, while the block driver only responds to requests from the kernel.
Self-developed
Other: Bus class, such as USB, PCI, SCSI, etc., generally used together with other drivers
Common device drivers to be developed, such as IIC, SPI, and USB communication.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service