Thematic 8-linux system calls

Source: Internet
Author: User

1. System calls are required from user space to kernel space
2. The system call is implemented via the SWI instruction, at which point a parameter is stored in the R7 register to specify the kernel function to invoke.
3. The actual functions of the general kernel State can be implemented in arbitrary. c files, but the corresponding function pointers must be added to the CALL.S (add table entries)
4. Also declare the parameters in the Unistd.h. This parameter is to be stored inside the R7.
5. When the User state interface function implementation, the above parameters should be stored to R7, and then execute the SWI instruction. Finally, when this function is called where this interface function is needed, the function automatically jumps to the kernel space to find the appropriate kernel-state function.

Thematic 8-linux system calls

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.