-
UML已死了吗? - [Linux Kernel UserModeLinux ]2007-09-08
UML(UserModeLinux)已死了吗? 在短暂的未来中,没有人可以预测,UML/Xen/KVM,究竟哪一种技术会最终胜出。
http://www.linux.com/articles/59616 http://virtminiconf.linux.hp.com/copy_of_program/uml-kvm-and-hardware-virtualizationTags: Linux Kernel UserModeLinux
-
请看中文的内核开发邮件归档 - [Linux Kernel ]2007-09-06
请看中文的内核开发邮件归档 没有故事能比这更为有趣的报道了。
> > 今天四大distribution 的技术领导到场,跟大牛们诉苦,他们主要的问题是:bug > > 太多,还有就是驱动程序问题。很多驱动程序进不了mainline kernel,他们不得 > > 以才收进自己的distribution. Linus当场拍板说他收驱动程序,只要distro打算要。 http://zh-kernel.org/pipermail/linux-kernel/ http://zh-kernel.org/pipermail/linux-kernel/2007-September/000662.html ... -
大事记 - [Kernel Linux ]2007-08-25
-
字符设备的mmap接口 - [Kernel Linux ]2007-06-17
-
发现LDD3书中的一个错误,发了质疑的邮件过去,回复果然是一个错误! - [Kernel ]2007-06-06
原文如下:
booktech@oreilly.com <booktech@oreilly.com> Wed, Jun 6, 2007 at 5:53 AM Reply-To: booktech@oreilly.comTo: crquan@gmail.comHi,
One of the authors responded already with the answer.
----
Yes, it's an error, the reader is correct, it should say the usb
controller instead.
thanks,
greg k-h
----[Quoted text hidden]LDD3在第十章281页(指英文pdf原文上的)在解释中断控制器的时候写道:
IRQ5用在serialATA和IEEE1394控制器上,但是对应项是ehci_hcd,应该是USB2.0的控制器,
于是给OReilly出版社发了询问邮件,联系到了作者之一greg k-h回复,终于验证了我的想法是对的。
注:LDD3是三位共同作者从第二版(LDD2)开始就明确声明为要使用一个更为开放的许可协议下发布的,它使用的是创作共用协议(CC-by-sa),因此可以自由地使用原文,原英文的高质量pdf文件在这里:
Tags: Kernel
-
以LDD3来说,有一些内核接口已经发生了变化 - [Kernel ]2007-06-02
现在2.6.21上编译LDD3中的examples代码时,有一些模块已不能通过了,因为有一些接口已经变了,
http://lwn.net/Kernel/LDD3/
在lwn上有一个专门的页面来收集内核提供的编程接口变化情况:
http://lwn.net/Articles/2.6-kernel-api/
对于LDD3来说,最大的变化就是workqueue的部分了,这个发生在2.6.20版,这里有一份详细说明:
http://lwn.net/Articles/211279/
work_func_t函数类型变了,不再接收一个任意的data指针,而是变为struct work_struct *work
typedef void (*work_func_t)(struct work_struct *work);
这个变化的主要原因是有人发现在2.6.20以前的struct work_struct这个结构体太大了,在64位系统上可能达到96字节;于是作出对workqueue机制的改进。
Tags: Kernel
-
syscall调用接口从2.6.19开始移到应用层, - [Kernel Linux ]2007-06-02
syscall调用接口从2.6.19开始移到应用层,原来内核中使用_syscallN宏的方式来声明函数原型的方法不再有效:
如声明:
_syscall1(int, sysinfo, struct sysinfo *, info);
不再需要,而是在程序中需要的时候直接调用:
int syscall(int number, ...);
- 第一个number是后面要接的参数个数,不是该系统调用的参数个数;
- number后面顺序接上该系统调用的所有参数即可
相应头文件包含也改变为
于是调用sysinfo就变为:
struct sysinfo s_info;
syscall(2, __NR_sysinfo, &s_info);可见新的调用方式变得更为简洁了。
References:- http://lxr.linux.no/source/include/asm-i386/unistd.h
- http://lxr.linux.no/source/include/asm-i386/unistd.h?v=2.6.18
- http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.19-git13.log
- commit f5738ceed46782aea7663d62cb6398eb05fc4ce0 of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
-
提交补丁到内核邮件列表 - [Kernel ]2007-05-31
这个补丁其实很简单,net/core/dst.c里面的dst_discard_in和dst_discard_out这两个函数其实是相同的,而且都是声明为static的函数,都是只在本文件内使用,而且使用的次数也很少,那么相同的为什么需要两个函数呢?没有想明白,于是写了英文邮件提交到内核邮件列表。
Tags: Kernel
-
内核邮件列表 - [kernel ]2007-05-30
-
no title - [Kernel ]2007-02-13
in the recent half a yaer, I found myself were going far and far awar with the kernel, but sometimes I wonder the thing is good or is bad?Tags: Kernel
-
关于 2.6 big kernel lock,大内核锁 - [Linux Kernel binutils ]2005-12-10
关于 2.6 big kernel lock,大内核锁
关于内核各人自有不同的解读方法,本人常用readelf, objdump等binutils中的工具,因对有些函数如 lock_kernel 的操作有很多编译参数的控制导致看不清其代码到底是什么,故将生成的vmlinux反汇编一下,于是一目了然:
-
stable_api_nonsense.txt - [Linux Kernel kernelnewbies ]2005-12-07
本文解释了为什么 Linux 内核既没有一个固定的二进制接口,也没有一个固定的源码级接口。就是说:
stable api is nonsense.
翻译自2.6内核,附原文如下:
Tags: Linux Kernel kernelnewbies



最新评论