摘要:
--by FeCen 在学习Linux驱动的过程中,遇到一个很好玩的内核函数,准确的说是一个很好玩的宏,叫做container_of。该宏定义在include/linux/kernel.h中,首先来贴出它的代码: 439/** 440 * container_of - cast a member of a structure out to the containing structure 441 ... 阅读全文
posted @ 2011-04-01 18:32
katago
阅读(3000)
评论(1)
推荐(0)

浙公网安备 33010602011771号