【Linux操作系统实现】内核中的一些宏函数汇总

1、 offset_of 宏

定义 : include/linux/stddfx.h

 

2、 container_of 宏

 

 

 

 

参考博文:Linux 内核 container_of 宏详解_积步千里的博客-CSDN博客

 

posted on 2023-11-20 11:33  lingzshen  阅读(65)  评论(0)    收藏  举报