摘要: 原创分析, 转载请注明出处:http://www.cnblogs.com/langlang/作者email:dayhappyhappy@163.com/***container_of-castamemberofastructureouttothecontainingstructure*@ptr:thepointertothemember.*@type:thetypeofthecontainerstructthisisembeddedin.*@member:thenameofthememberwithinthestruct.**/#definecontainer_of(ptr,type,memb 阅读全文
posted @ 2012-04-19 22:04 朗笑江湖 阅读(438) 评论(0) 推荐(0) 编辑
摘要: 本人喜欢用代码+伪代码的方式写笔记。文中的花括号可能是方便记录而已。如:hw_get_module(LED_HARDWARE_MODULE_ID, (const hw_module_t**)&module){ 问:怎么获得模块信息的? 答:hardware\libhardware\Hardware.c ...........}原创分析, 转载请注明出处:http://www.cnblogs.com/langlang/作者email:dayhappyhappy@163.combusybox-1.18.5分析文件init.cintinit_main(intargcUNUSED_PARAM, 阅读全文
posted @ 2012-04-19 19:34 朗笑江湖 阅读(1616) 评论(0) 推荐(0) 编辑