Cstardust / BlogComments

BlogComments
1 stars 0 forks source link

操作系统-xv6-lab9-mmap | 不落辰 #31

Open Cstardust opened 1 year ago

Cstardust commented 1 year ago

https://cstardust.github.io/2022/12/13/%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F-xv6-lab9-mmap/

void mmap(void addr, size_t length, int prot, int flags, int fd, off_t offset); 本实验实现了简易的mmap syscall(阉割版). 实现所谓的将”文件映射到内存” 对比 现代OSmmap : disk -> kernel buf. user va映射到kernel bu 实现的xv6mmap :