![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
南城旧事&
这个作者很懒,什么都没留下…
展开
-
linux内核-将驱动编译进内核
linux内核-将驱动编译进内核例如:将hello world驱动配置编译进内核1、在内核目录/drivers/char目录下新建一个hello子目录2、在hello目录中,编写Kconfig,Makefile,hello.c等文件Makefile: obj -$(CONFIG_HELLO) +=hello.oKconfig:config HELLOtristate “hello world” //引号括起来的表示模块名helpthis option enable support fo原创 2021-10-15 22:42:29 · 493 阅读 · 0 评论 -
C语言基础学习【笔记】
1、mallocC语言使用malloc分配内存时,不需要强制类型转换,C语言支持void*隐式转换成其他类型的指针,而c++不支持,c++一般使用new。2、strcpy(char dest,const char sour);strcpy函数会把sour指向的字符串复制到dest,strcpy回复制结束符\0。3、printf("%8U\n",a);格式字符必须为小写,"%8U"不会当做格式控制符,而且是原样输出!...原创 2020-05-17 22:34:24 · 174 阅读 · 0 评论