
program
陆伊寒
这个作者很懒,什么都没留下…
展开
-
C++中函数参数的默认值和函数重载的冲突
如果在函数的定义中使用了默认值,那么在函数声明的时候可以不带入参数,如果此时使用不带参数的函数进行函数的重载就会出现定义模糊的现象,编译器将拒绝此类代码原创 2016-07-18 23:46:46 · 3075 阅读 · 0 评论 -
S3C6410移植linux4.17内核(一)
环境:Ubuntu16.04(VMWare) 1.准备工作 下载最新的内核,linux-4-17 便在交叉编译工具,gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2 下载完成后,解压内核和编译工具, 将编译工具的路径加入PATH变量 export PATH=$PATH:/usr/local/arm/gcc-arm-none/bin/...原创 2018-07-18 13:28:02 · 1615 阅读 · 1 评论 -
Linux中container_of的实现
/** * container_of - cast a member of a structure out to the containing structure * @ptr: the pointer to the member. * @type: the type of the container struct this is embedded in. * @member: ...原创 2018-07-18 15:15:29 · 256 阅读 · 0 评论