mirror of
https://github.com/SmallPond/MIT6.828_OS.git
synced 2026-05-01 14:19:43 +08:00
17 lines
389 B
C
17 lines
389 B
C
#include "ns.h"
|
|
|
|
extern union Nsipc nsipcbuf;
|
|
|
|
void
|
|
input(envid_t ns_envid)
|
|
{
|
|
binaryname = "ns_input";
|
|
|
|
// LAB 6: Your code here:
|
|
// - read a packet from the device driver
|
|
// - send it to the network server
|
|
// Hint: When you IPC a page to the network server, it will be
|
|
// reading from it for a while, so don't immediately receive
|
|
// another packet in to the same physical page.
|
|
}
|