Linux 内核第一版 (v0.01) 开源代码解读,仅 8670 行代码!
转自:OSC开源社区(ID:oschina2013)
v0.01 总共包含 66 个 system call,如下: access acct alarm break brk chdir chmod
chown chroot close creat dup dup2 execve
exit fcntl fork fstat ftime getegid geteuid
getgid getpgrp setsid getpid getppid
getuid gtty ioctl kill link lock lseek
mkdir mknod mount mpx nice open pause
phys pipe prof ptrace read rename rmdir
setgid setpgid setuid setup signal stat
stime stty sync time times ulimit umask
umount uname unlink ustat utime waitpid write针对 i386 进行了深度硬编码 Linux 内核最初的名字为 "FREAX" # Makefile for the FREAX-kernel. 5 行代码实现 Kernel panic volatile void panic(const char * s)
{
printk("Kernel panic: %s\n\r",s);
for(;;);
}Linus 当时没有 8MB RAM 的机器 * For those with more memory than 8 Mb - tough luck. I've
* not got it, why should you :-) The source is here. Change
* it. (Seriously - it shouldn't be too difficult. ...
END
官方站点:www.linuxprobe.com
Linux命令大全:www.linuxcool.com
刘遄老师QQ:5604215
Linux技术交流群:2636170
(新群,火热加群中……)
想要学习Linux系统的读者可以点击"阅读原文"按钮来了解书籍《Linux就该这么学》,同时也非常适合专业的运维人员阅读,成为辅助您工作的高价值工具书!
微信扫码关注该文公众号作者
戳这里提交新闻线索和高质量文章给我们。
来源: qq
点击查看作者最近其他文章