Linux头文件

1.内核编程使用头文件

 

The base files are located in the include/ directory in the root of the kernel source tree. For 

example, the header file <linux/inotify.h> is located at include/linux/inotify.h in the kernel source tree.

 

A set of architecture-specific header files are located in arch/<architecture>/include/asm 

in the kernel source tree. For example, if compiling for the x86 architecture, your architecture-specific headers are in arch/x86/include/asm. Source code includes these headers via just the asm/ prefix, for example <asm/ioctl.h>

 

--摘自《Linux Kernel Development》英文版第三版第17页

 

2.应用程序编程使用头文件

 

Linux system programming revolves around a handful of headers. Both the kernel itself

and  glibc provide the headers used in system-level programming. These headers include

the standard C fare (for example,  <string.h>), and the usual Unix offerings (say,

<unistd.h>)

 

--摘自《Linux System Programming》英文版第二版第21页

 

3.内核头文件的使用参考

 

http://blog.chinaunix.net/uid-20543672-id-3162485.html

http://kernelnewbies.org/KernelHeaders

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值