找回密码
 立即注册
搜索
查看: 326|回复: 0

Linux 内核常用函数头文件

[复制链接]

266

主题

0

回帖

1119

积分

管理员

积分
1119
发表于 2024-2-16 11:57:56 | 显示全部楼层 |阅读模式

linux/types.h

size_t time_t clock_t uint8_t uint16_t ...

linux/stddef.h

NULL true false offsetof

stdarg.h

Linux 内核中没有 stdarg.h 头文件(stdarg 是编译器内建的,所以不包含在内核中),要使用编译工具链中的 stdarg.h 头文件。

linux/ctype.h

isdigit、islower、isupper、tolower、toupper ...

linux/string.h

memcpy memmove memcmp memset

strcpy strlen strcat strstr strcmp strchr

strncpy strlcpy strnlen strncat strnstr strncmp strnchr

linux/printk.h

printk、vprintk

linux/uaccess.h

copy_to_user copy_from_user

linux/slab.h

kmalloc kzalloc krealloc kfree

linux/vmalloc.h

vmalloc  vfree

linux/kernel.h

当包含 linux/kernel.h 时就间接包含了 stdarg.h(不在内核中)、linux/types.h、linux/types.h、linux/printk.h 等头文件

sprintf、snprintf、vsprintf、vsnprintf 也在这里定义


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|棱讯科技 ( 粤ICP备2024228160号-2|粤公网安备44030002003510号 )

GMT+8, 2024-7-27 18:39 , Processed in 0.014697 second(s), 3 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表