Definition of common macro tag in Linuxi386 + source code
Source: Internet
Author: User
The definition of common macro tag in Linuxi386 + Source Code-Linux general technology-Linux programming and kernel information. The following is a detailed description. These macros include _ init, _ initdata, _ initfunc (), asmlinkage, ENTRY (), and FASTCALL. They are defined mainly in Include \ linux \ linkage. h and include \ asm-i386 \ Init. h and some other. h files.
Note: This identifier is put together with the function declaration, indicating that the gcc compiler needs to put this function during compilation. text. init section, which is released after kernel initialization.
Note: This identifier is put together with the variable declaration, indicating that the gcc compiler needs to place this variable during compilation. data. init section, which is released after kernel initialization.
Note: The flag is put together with the function declaration, which tells the gcc compiler that the function does not need to pass parameters through any registers. The parameters are only transmitted through stacks.
Note: This identifier is put together with the function declaration. The attribute declaration with regparm (3) tells the gcc compiler that this function can pass up to three parameters through registers, the three registers are EAX, EDX, and ECX in sequence. More parameters are passed through the stack. In this way, some inbound and outbound stack operations can be reduced, so calling is faster.
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