initcall

阅读: 评论:0

Understanding The Linux Kernel Initcall Mechanism Creating Dynamic Function-Pointer Call Tables卷染机
Trevor Woerner
Understanding The Linux Kernel Initcall Mechanism:Creating Dynamic Function-Pointer Call Tables
by Trevor Woerner网络视频传输
溴代环丙烷Copyright©2003,2006Trevor Woerner
Copyright(c)2003,2006Trevor Woerner
All rights reserved.
Redistribution and use in source and binary forms,with or without modification,
are permitted provided that the following conditions are met:
*Redistributions of this document and all related source code must retain
the above copyright notice,this list of conditions and the following disclaimer.
人脸识别医疗
*Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
*Neither the name of Trevor Woerner nor the names of any contributors may
be used to endorse or promote products derived from this document or
related software without specific prior written permission.
THIS DOCUMENT AND RELATED SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS"AND ANY EXPRESS OR IMPLIED WARRANTIES,INCLUDING,BUT NOT LIMITED TO,THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.IN NO
EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,INDIRECT,
INCIDENTAL,SPECIAL,EXEMPLARY,OR CONSEQUENTIAL DAMAGES(INCLUDING,BUT NOT LIMITED
TO,PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;LOSS OF USE,DATA,OR PROFITS;OR
BUSINESS INTERRUPTION)HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,WHETHER IN
CONTRACT,STRICT LIABILITY,OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE)ARISING IN
ANY WAY OUT OF THE USE OF THIS DOCUMENTATION OR RELATED SOFTWARE,EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.
[Standard BSD License,see 1for more information]
Revision History
Revision0.126August2003Revised by:tlw
Document start.
Revision1.023September2003Revised by:tlw
Document completed and released.
Revision1.111October2006Revised by:tlw
Updated to latestiesp-144
Table of Contents
Abstract (i)
1.Introduction (1)
Date and Version (1)
Notation (1)
Architecture (1)
Tools (1)
"objdump-t"output format (1)
2.Motivation (7)
3.Background Information (9)
Executable File Formats (9)
Linker (10)
Compiler (10)
4.Simple Examples (11)
光触媒滤网
Before/After main() (11)
Section and Object Layout (11)
Putting Objects into their own ELF Sections (19)
5.How the Linux Kernel initcall Mechanism Works (25)
6.From the Kernel To Stand-Alone Code (29)
7.References (31)
iii
iv
Abstract
While browsing through the Linux kernel,I came upon a technique for creating a
segment of function pointers which can be called at a later time in the order that they
are inserted into the segment.The kernel uses this mechanism to call device driver
initialization routines at boot-up.
I had a hard timefinding clear information about what was going on and how it
worked.After much googling(and some code doodling)I understand what is hap-
pening.This paper is an attempt at putting what I understand of this process down
on paper so others may hopefullyfind it useful.
Note:This technique depends on,and requires the use of,the GNU compiler and
linker tools.Additionally,the ELF binary executable format must be used.This is
not a general-puropse ANSI-C compliant technique.
Please direct any useful observations or comments to(remove spaces and adjust the
formatting):twoerner.k AT gmail DOT com
i
Abstract ii

本文发布于:2023-05-18 19:05:49,感谢您对本站的认可!

本文链接:https://patent.en369.cn/patent/2/104390.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:视频   医疗   网络
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 369专利查询检索平台 豫ICP备2021025688号-20 网站地图