1 typedef struct Data Data;
2 typedef struct Page Page;
3 typedef struct Proc Proc;
4 typedef struct Seg Seg;
18 Pagesize = 1024, /* need not relate to kernel */
39 /* when page is written, these hold the ptr to it */
50 Seg** seg; /* memory segments */
52 Seg* text; /* text file */
55 extern char *pfile[Npfile];
57 Proc* snap(long pid, int usetext);
59 void* erealloc(void*, ulong);
61 void writesnap(Biobuf*, Proc*);
62 Page* datapage(char *p, long len);
63 Proc* readsnap(Biobuf *b);
64 Page* findpage(Proc *plist, long pid, int type, uvlong off);