This repository contains the projects I have done on xv6 as a part of OSTEP, See their git for more information.
- p1b_1 (adding a system call that returns how many times that the read() system call has been called by user processes since the time that the kernel was booted) commit link.
- p1b_2 (add lock to make the counter thread-safe) commit link.
test files names: test_1_p1b.c test_2_p1b.c
note: I added the file to the MakeFile to make it easy to test,
so all you have to do is build the xv6 and inside of it type test_1_p1b or test_2_p1b.c, etc.
xv6 is a re-implementation of Dennis Ritchie's and Ken Thompson's Unix Version 6 (v6). xv6 loosely follows the structure and style of v6, but is implemented for a modern x86-based multiprocessor using ANSI C.
Check the original repository for more information.