![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux设备驱动
unikingest
这个作者很懒,什么都没留下…
展开
-
void value not ignored as it ought to be
gcc中出现了“void value not ignored as it ought to be”错误,原因是你使用的一个函数的返回值类型是void,而你有对它进行了赋值处理。例如:int ret;ret=unregister_chrdev(MAJOR_NUM,"globalvar");原创 2009-03-10 21:19:00 · 22461 阅读 · 5 评论 -
ubuntu下编译驱动程序的准备
ubuntu不带linux内核源码,需要自己下载安装。1,查看自己的内核版本uname -r2,查看源内的内核源码类表apt-cache search linux-source 3,下载安装内核源代码sudo apt-get install linux-source-2.6.27 //我选的是这一个,自己看着原创 2009-03-10 21:24:00 · 6187 阅读 · 1 评论 -
字符驱动-1
参考文章http://dev.yesky.com/186/2623186.shtml,本文浅显易懂,写得非常好,看完了再去看《Linux设备驱动》就会更容易理解。不过文章内有错误,好像作者没有自己运行过似的,将用红色字体指明。 //------------------------------------globalvar.c----------------------------原创 2009-03-10 22:27:00 · 765 阅读 · 0 评论