2 ms·
I found the Minix source code to be quite terrible to follow through. If you want a simple implementation, I'd suggest looking at the xv6 source code. It's far
by ori_b 16y ago
I found the Minix source code to be quite terrible to follow through. If you want a simple implementation, I'd suggest looking at the xv6 source code. It's far more comprehensible, cleaner, and better architected, in my opinion. For the code in question, look through sysfile.c in the source code.
http://pdos.csail.mit.edu/6.828/xv6/ http://pdos.csail.mit.edu/6.828/xv6/
For a real-world example, I second the recommendation of BSD, combined with the book below.