不到一万行!Linux内核v0.01版代码讲了啥

2023-08-20 22:25:01    来源 : 面包芯语


(相关资料图)

v0.01 总共包含 66 个 system call,如下:

access acct alarm break brk chdir chmodchown chroot close creat dup dup2 execveexit fcntl fork fstat ftime getegid geteuidgetgid getpgrp setsid getpid getppidgetuid gtty ioctl kill link lock lseekmkdir mknod mount mpx nice open pausephys pipe prof ptrace read rename rmdirsetgid setpgid setuid setup signal statstime stty sync time times ulimit umaskumount uname unlink ustat utime waitpid write

针对 i386 进行了深度硬编码

Linux 内核最初的名字为"FREAX"

# Makefile for the FREAX-kernel.
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. ...

Linux v0.01 源代码下载:https://cdn.kernel.org/pub/linux/kernel/Historic/linux-0.01.tar.gz

标签:

相关推荐

x 广告

如有意见请与我们联系 邮箱:8 97 180 9 @qq.com

豫ICP备2021032478号-31

Copyright ©  2015-2022 元宇宙版权所有