[MIT 6.S081 Fall 2020] Lab: networking
xv6
https://pdos.csail.mit.edu/6.S081/2020/labs/net.htmlRead in Github/* kernel/e1000.c */// struct spinlock e1000_lock;struct spinlock e1000_tx_lock;struct spinlock e1000_rx_lock;/* kernel/e1000.c */void e1000_init(uint32 *xregs) { int i; // initlock(&e1000_lock, "e1000"); initlock(&e1000_tx_lock, "e1000_tx"); initlock(&e1000_rx_lock, "e1000_rx");...}/* kernel/e1000.c */int e1000_transm..