Introduction to Linux Device Drivers

Source: Internet
Author: User

The kernel is driven by a device.ProgramInteraction with I/O devices.

The device driver is included in the kernel and consists of data structures and functions that control one or more devices, these devices include hard disk, keyboard, mouse, monitor, network interface, and devices connected to the SCSI bus. Through a specific interface, each driver interacts with the rest of the kernel (including other drivers.

 

This method has the following advantages:

You canCodeEncapsulated in a specific module

If you do not know about the kernelSource codeNew devices can be added only when the interface specification is known.

The kernel treats all devices in a unified manner and accesses these devices through the same interface.

You can write the device drivers as modules and dynamically load them into the kernel instead of restarting the system. You can also dynamically detach a module when it is no longer needed to reduce the size of the kernel image stored in Ram.

 

Describes the interface between the device driver and other parts of the kernel and processes:

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.