linux
文章平均质量分 80
chenglong_abc
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
generic_netlink_howto
http://www.linuxfoundation.org/collaborate/workgroups/networking/generic_netlink_howto This document gives a brief introduction to Generic Netlink, some simple examples on how to use it and so原创 2012-06-13 11:05:47 · 1603 阅读 · 0 评论 -
浅谈Linux PCI设备驱动(一)
转自http://www.uml.org.cn/embeded/201205152.asp 浅谈Linux PCI设备驱动(一) 要弄清楚Linux PCI设备驱动,首先要明白,所谓的Linux PCI设备驱动实际包括Linux PCI设备驱动和设备本身驱动两部分。不知道读者理不理解这句话,本人觉得这句话很重要,对于PCI、USB这样的驱动来说,必须要理解这个概念,才能明白该如何看待转载 2012-06-15 10:32:21 · 2102 阅读 · 0 评论 -
Writing Network Device Drivers for Linux
http://linuxgazette.net/156/jangir.html转载 2012-06-18 19:54:44 · 620 阅读 · 0 评论 -
【linux】container_of 理解
转自:http://blog.youkuaiyun.com/yinkaizhong/article/details/4129902 问题:如何通过结构中的某个变量获取结构本身的指针??? 关于container_of见kernel.h中: /** * container_of - cast a member of a structure out to the containing st转载 2012-07-11 10:19:38 · 731 阅读 · 0 评论 -
C编程技巧收集
1. struct net_bridge_port *p; p = (port_no ports[port_no] : port_no == OFPP_LOCAL ? dp->local_port : NULL); if (!p || memcmp(opm->hw_addr, p->dev->dev_addr, ETH_ALEN)) //简单的组合判断条件实现了原创 2012-06-12 10:51:28 · 457 阅读 · 0 评论 -
如何编写makefile
http://blog.youkuaiyun.com/New_town/article/details/1474656 http://blog.youkuaiyun.com/liang13664759/article/details/1771246 1:作用 Make工具最主要也是最基本的功能就是通过makefile文件来描述源程序之间的相互关系并自动维护编译工作。而makefile 文件需要按转载 2012-07-19 14:53:19 · 475 阅读 · 0 评论 -
linux内核的ioctl函数学习
[转自]http://www.linuxidc.com/Linux/2007-12/9623p2.htm 我这里说的ioctl函数是在驱动程序里的,因为我不知道还有没有别的场合用到了ioctl, 所以就规定了我们讨论的范围。为什么要写篇文章呢,是因为我前一阵子被ioctl给搞混了,这几天才弄明白它,于是在这里清理一下头脑。 一、 什么是ioctl。 ioctl是设备驱动程序中对设备的I/O通转载 2012-08-10 15:45:18 · 1479 阅读 · 0 评论 -
linux下select()函数以及FD_ZERO、FD_SET、FD_CLR、FD_ISSET
【转】http://hi.baidu.com/bimufo/item/139700e4d880cba1c00d755c select函数用于在非阻塞中,当一个套接字或一组套接字有信号时通知你,系统提供select函数来实现多路复用输入/输出模型,原型: #include sys/time.h> #include unistd.h> int转载 2012-08-10 17:30:41 · 18972 阅读 · 0 评论
分享