list_entry()等价于container_of()
来源:互联网 发布:淘宝神笔怎么样 编辑:程序博客网 时间:2024/06/04 17:41
list_entry() 宏在 linux/list.h 中的定义如下:
/** * list_entry - get the struct for this entry * @ptr: the &struct list_head pointer. * @type: the type of the struct this is embedded in. * @member: the name of the list_struct within the struct. */#define list_entry(ptr, type, member) \ container_of(ptr, type, member)可见 list_entry() 宏就是 container_of() 宏的一个别名。
0 0
- list_entry()等价于container_of()
- list_entry , container_of
- list_for_each_entry/list_entry/container_of
- Linux中的list_entry和container_of
- container_of函数和list_entry函数
- container_of()和内核链表中的list_entry()
- container_of()和内核链表中的list_entry()
- 我也来说说container_of(或者list_entry)
- "-It" 等价于 "<" "-gt" 等价于 ">" "-eq" 等价于 "=" ???
- Linux内核中list_head、list_for_each、list_entry、container_of之间的关系
- list_entry
- list_entry
- list_entry
- list_entry
- list_entry
- LIST_ENTRY
- list_entry()
- list_entry()
- LeetCode - Best Time to Buy and Sell Stock
- 根据资源ID名获取ID值
- 游戏登录背景的白云生成脚本
- 【链接】iOS开发者必备:自己总结的iOS、mac开源项目
- 欢迎使用CSDN-markdown编辑器
- list_entry()等价于container_of()
- Android常用的物理按键及其触发事件
- 【LeetCode】第1题: Two Sum
- 开关电源和LDO纹波
- 通用的依赖注解
- 【BZOJ 4542】大数 【莫队】
- Notification点击事件和点击消失
- 魅族刷机的方法,很给力
- squid使用