neighbour 学习笔记(kernel 3.0) For ethernet, dev->header_ops is eth_header_ops 12345 936 static int __devinit e1000_probe(struct pci_dev *pdev, 937 const struct pci_device_id *ent) 2011-09-28 Netlink #neighbour
linux kernel IPv6 route IPv6 route tree 原理.IPv6路由采用二叉树的形式进行存储, 查找任意路由最多需要128次比较(128次,说法不太严格)。因此其算法复杂度为常数,因此IPv6里没有像IPv4那样的cache。 2011-04-17 Route #IPv6
fix bug: timezone of toolchain When we compile a glibc(or eglibc), we need generated the timezone data file with it. although, it is stable and no change almost in every version update. Today a problem is met about it. We use the o 2011-01-22 Tools #gcc
pf_key module summary 0.0.1. af_key.clinux kernel provide 3 method to manager SA/SP,such as add/del/flush/dump SAs/SPs. pf_key socket. netlink message. socket option. The af_key.c implement the p 2010-06-02 XFRM #XFRM
xfrm in kernel 0.0.1. global var and structure:static DEFINE_PER_NET(struct hlist_head *, xfrm_state_byspi);static struct xfrm_policy_afinfo *xfrm_policy_afinfo[NPROTO];xfrm_policy_afinfo 定义一个大的数组,每一个元素对应一个地址族,如ipv4 2009-05-13 XFRM #XFRM
嵌入Linux下的usb storage的支持 目标: 在mipsel架构的嵌入式linux系统上支持USB盘的读写。思路: 使用可加载模块的形式增加 scsimod.ko, sdmod.ko, usbstorage.ko, fat.ko, vfat.ko. 0.1. 具体实现:0.1.1. 步骤I 准备必须的驱动(可加载模块) scsimod.ko 源代码目录下的 driver/scsi目录下的文件编译 sdmod. 2007-12-11 Tools #Tools
#在C中用法 0.0.1. 示例12345678#include <stdio.h>#define printTypeSize(x) {printf("sizeof("#x")\t = %d\n", sizeof(x));}int main(){ printTypeSize(char); return 0; 2007-11-30 Tools #gcc
嵌入式linux的远程控制-Mini vnc 0.1. 项目背景公司有台测试设备是基于嵌入式linux的, 支持framebuff。该测试设备自带显卡,并且绝大多数的操作需要据需要本地键盘操作,所有运行结果均显示在本机屏幕。公司现基于同一管理的需要。所有的物理设备均需要放入机房。这给在该设备进行开发和测试的人员以很大的不方便。因此尝试开发一套基于嵌入式linux远程控制软件,并命名mini-vnc。 2007-11-15 Tools #Tools
正则表达式之道 原著:Steve Mansoursman@scruznet.comRevised: June 5, 1999 翻译:Neo Leeneo.lee@gmail.com2004年10月16日 译者按:原文因为年代久远,文中很多链接早已过期(主要是关于vi、sed等工具的介绍和手册),本译文中已将此类链接删除,如需检查这些链接可以查看上面链接的原文。除此之外基本照原文直译,括号中有“译者按”的部分是译者 2007-10-10 others #others
vim 特定字符后中插入回车换行 原文件<port_countxsi:type=\"xsd:int\">16</port_count><switch_port_idxsi:nil=\"true\"/><attenuatorxsi:type=\"xsd:double\">+10</attenuator><r 2007-09-14 Tools #vim