Linux Device Driver Chapter 3 Study Notes

Source: Internet
Author: User
Chapter 3 of linux Device Drivers-Linux general technology-Linux programming and kernel information. Runtime Environment ubuntu 7.10 kernel version: 2.6.22

Main. c contains the main program, scull device initialization, uninstallation, open, write, scull. h header file, scull_load to load the scull module script, scull_unload to uninstall the scull module script.

Modify the main. c file: delete # include , Add # include . Add # include to access. c. And # include . After correction, make the compilation and run the scull_load and scull_unload scripts to add the scull device.

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.