# Labs of xv6-riscv-fall19 ## Notes ### fork() On duplicating the process, opened files are also duplicated. ### exec() The system call exec replaces the calling process’s memory ==but preserves its file table==. ### mknod() Files created with this syscall has no contents. Furthermore, write() and read() are being diverted to the kernel device implementation instead of passing them to the file system. ## Reference - [xv6-riscv-fall19](https://github.com/mit-pdos/xv6-riscv-fall19) - [fork() - fd related](https://stackoverflow.com/questions/30226530/same-file-descriptor-after-fork) - [The RISC-V Reader: An Open Architecture Atlas (chinese edition)] (http://riscvbook.com/chinese)