会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
namezhyp
博客园
首页
新随笔
联系
订阅
管理
随笔分类 -
linux
linux宏offset_of学习随笔
摘要:offset_of 宏 定义:include/linux/stddfx.h 功能:给出两个参数:结构体和它的成员,获取其成员关于结构体首地址的偏移: #define offset_of(type, member) (unsigned long) &((type*)0)->member 这个想法挺精巧
阅读全文
posted @
2023-09-04 11:29
namezhyp
阅读(110)
评论(0)
推荐(0)
公告