linux分析
mengzhe2016
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
of_parse_phandle_with_args()
int of_parse_phandle_with_args(const struct device_node *np, const char *list_name, const char *cells_name, int index, struct of_phandle_args *out_args) { if (index < 0) return -EINVAL; return __of_parse_phandle_with_args(np, list_name, cel.原创 2020-09-03 16:09:09 · 2142 阅读 · 0 评论 -
kernel中的BIT与GENMASK
kernel4.14/include/linux/bits.h 用于移位: #define BIT(nr) (1UL << (nr)) #define BIT_ULL(nr) (1ULL << (nr)) 注1UL,无符号长整型1,32位,即0x00000001 1ULL,unsigned long long, 64位,即0x0000000000000001 用于产生一个从@l开始到@h结束的连续的bitmask: #define GENMASK(h, l)((..原创 2020-08-25 13:50:29 · 7715 阅读 · 0 评论
分享