Chinaunix首页 | 论坛 | 博客
  • 博客访问: 711998
  • 博文数量: 130
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 2198
  • 用 户 组: 普通用户
  • 注册时间: 2011-11-29 12:48
个人简介

每一个“丑得人神共愤”的泡妞高 手都有一颗坚忍的心,这证明了人类 在绝境中毫不妥协的求生精神,反正丑都丑了,索性放开手脚大干一场,这就叫“无产阶级失去的是锁链,得到的是全世界”

文章分类

全部博文(130)

文章存档

2013年(130)

我的朋友

发布时间:2013-09-24 11:45:47

TCP包的校验和--1) TCP包的错误检测使用16位加和校验. 除了TCP包本身,TCP校验数据块还包括源IP地址,目的IP地址, TCP包长度, TCP协议号组成的12字节伪头标. 2) 校验和为16位字补码和, 数据块长度为奇数时, 数据块末尾添零处理.校验和的计算与顺序无关, 可以从数据块开始计算, 也可以从未尾开始向前计算. 3) 为了提高.........【阅读全文】

阅读(3389) | 评论(0) | 转发(0)

发布时间:2013-09-24 11:30:19

最近在公司的代码中看到不少likely/unlikely的调用,起初不太明白,上网一查才明白这东西是干吗用的。首先要明确以下代码的含义: if (likely(value))等价于if (value) if (unlikely(value))等价于if (value)也就是说likely()和unlikely()从阅读和理解的角度是一样的。这两个宏在内核中定.........【阅读全文】

阅读(2229) | 评论(0) | 转发(2)

发布时间:2013-09-23 16:33:10

It's usually in this order:NIC hardware gets the electrical signal, hardware updates some of its registers and buffers, which are usually mapped into computer physical memoryHardware activates the IRQ lineKernel traps into interrupt-handling routine and invokes .........【阅读全文】

阅读(1772) | 评论(0) | 转发(0)

发布时间:2013-08-13 11:40:15

Linux 内核链表移植我参考网上的文章修改了移植后的Linux内核的双向链表和HASH链表, 使之适用于Linux和Windows平台. 可以在用户态下使用. 任何后果, 本人概不负责!下面是全部代码:/** * dhlist.h * - deque list and hash list from Linux Kernel * * from Linux Kernel * for Windows and Linux *.........【阅读全文】

阅读(1684) | 评论(0) | 转发(0)

发布时间:2013-07-17 18:21:43

原文地址:http://www.linuxjournal.com/content/kbuild-linux-kernel-build-systemOne amazing thing about Linux is that the same code base is used for a different range of computing systems, from supercomputers to very tiny embedded devices. If you stop for a second and think about it, Linux is probabl.........【阅读全文】

阅读(1156) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册