1. 首页
  2. 数据库
  3. 其它
  4. linux内核中的container_of

linux内核中的container_of

上传者: 2021-01-17 01:33:45上传 PDF文件 52.29KB 热度 9次
在内核代码中,经常见到container_of函数,它是一个宏定义,定义在include\linux\kernel.h文件中 /** * Container_of - cast a member of a structure out to the containing structure (将一个结构体的成员包含到指定的结构体中) * @ptr: the pointer to the member. (待包含的结构体成员指针) * @type: the type of the container struc
下载地址
用户评论