Xv6 with picoc & Linkage editor
v1.0
The project delineate mutual cohesion between c library, linkage editor ( linker), interpreter and operating system by porting the same on xv6 kernel
|
00001 struct buf { 00002 int flags; 00003 uint dev; 00004 uint sector; 00005 struct buf *prev; // LRU cache list 00006 struct buf *next; 00007 struct buf *qnext; // disk queue 00008 uchar data[512]; 00009 }; 00010 #define B_BUSY 0x1 // buffer is locked by some process 00011 #define B_VALID 0x2 // buffer has been read from disk 00012 #define B_DIRTY 0x4 // buffer needs to be written to disk 00013