Android Deep Exploration (Vol. 1) HAL and Driver Development Tenth Chapter summary

Source: Internet
Author: User

This chapter mainly studies The call technology of Embedded Linux, which needs to be tested by various methods for complex Linux drivers and HAL libraries. Here are two things to know when writing a macro:

1. Variable-parameter macros

2.do{...} while (0)

After that, we learned the parameter definitions of 4 functions:

Proc-makedir

Name: virtual directory names

Parent: proc-dir-entry struct pointer for the parent directory of the virtual directory

Creat-proc-entry

Name: virtual file names

Mode: access permissions for virtual files

Parent: proc-dir-entry struct pointer to the parent directory of the virtual file

Cereat-proc-read-entry

Name: virtual file System

Mode: access permissions for virtual files

Base: The virtual file directory

Pro-dir-entry: struct pointer

read-proc-: A function pointer that handles read actions

Data: for the virtual file system

Remove-proce-entry:

Name: The names of the virtual files to be deleted

Parent: Virtual file parents directory

Proc-dir-entry: struct pointer

Linux kernel Debugging is considered difficult, and most people prefer to use the printk function to output debugging information and not to use various commands for debugging.

http://home.cnblogs.com/u/zivjeli/

Android Deep Exploration (Vol. 1) HAL and Driver Development Tenth Chapter summary

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.