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 · 1966 阅读 · 0 评论 -
kernel中的BIT与GENMASK
kernel4.14/include/linux/bits.h用于移位:#define BIT(nr) (1UL << (nr))#define BIT_ULL(nr) (1ULL << (nr))注1UL,无符号长整型1,32位,即0x000000011ULL,unsigned long long, 64位,即0x0000000000000001用于产生一个从@l开始到@h结束的连续的bitmask:#define GENMASK(h, l)((..原创 2020-08-25 13:50:29 · 6316 阅读 · 0 评论