1 void accessdir(Iobuf*, Dentry*, int, int);
2 void addfree(Device*, Off, Superb*);
6 int authread(File*, uchar*, int);
7 int authwrite(File*, uchar*, int);
8 void cdiag(char*, int);
11 Off bufalloc(Device*, int, long, int);
12 void buffree(Device*, Off, int, Truncstate *);
13 int byuid(void*, void*);
14 void cfsdump(Filsys*);
15 void chanhangup(Chan *cp, char *msg);
16 Chan* fs_chaninit(int, int);
17 void cmd_check(int, char*[]);
18 void cmd_users(int, char*[]);
19 void cmd_newuser(int, char*[]);
20 void cmd_printconf(int, char*[]);
21 void cmd_wormreset(int, char *[]);
23 int checktag(Iobuf*, int, Off);
25 int con_attach(int, char*, char*);
26 int con_clone(int, int);
27 int con_create(int, char*, int, int, long, int);
30 int con_open(int, int);
31 int con_read(int, char*, Off, int);
33 int con_session(void);
34 int con_walk(int, char*);
35 int con_write(int, char*, Off, int);
36 int cwgrow(Device*, Superb*, int);
37 int cwfree(Device*, Off);
40 int cwread(Device*, Off, void*);
42 void cwrecover(Device*);
44 Devsize cwsize(Device*);
45 int cwwrite(Device*, Off, void*);
46 char* dataof(char *file);
47 void datestr(char*, Timet);
48 Off dbufread(Iobuf*, Dentry*, Off, Off, int);
50 Filsys* dev2fs(Device *dev);
51 int devcmpr(Device*, Device*);
52 void devream(Device*, int);
53 void devrecover(Device*);
54 void devinit(Device*);
55 int devread(Device*, Off, void*);
56 Devsize devsize(Device*);
57 int devwrite(Device*, Off, void*);
58 Iobuf* dnodebuf(Iobuf*, Dentry*, Off, int, int);
59 Iobuf* dnodebuf1(Iobuf*, Dentry*, Off, int, int);
61 void dtrunc(Iobuf*, Dentry*, int);
62 int dtrunclen(Iobuf *p, Dentry *, Off newsize, int uid);
63 int dumpblock(Device*);
68 File* filep(Chan*, ulong, int);
69 void formatinit(void);
73 Devsize fwormsize(Device*);
74 void fwormream(Device*);
75 void fworminit(Device*);
76 int fwormread(Device*, Off, void*);
77 int fwormwrite(Device*, Off, void*);
78 Iobuf* getbuf(Device*, Off, int);
79 char* getwrd(char*, char*);
80 Dentry* getdir(Iobuf*, int);
81 Off getraddr(Device*);
82 void hexdump(void*, int);
83 int iaccess(File*, Dentry*, int);
84 void* ialloc(uintptr, int);
87 Device* iconfig(char *);
88 Off indfetch(Device*, Off, Off, Off , int, int, int);
89 int ingroup(int, int);
90 Devsize inqsize(char *file);
92 void* iobufmap(Iobuf*);
93 void iobufunmap(Iobuf*);
96 int jukeread(Device*, Off, void*);
97 int jukewrite(Device*, Off, void*);
98 void jukeinit(Device*);
99 void jukeream(Device*);
100 void jukerecover(Device*);
101 Off jukesaddr(Device*);
102 Devsize jukesize(Device*);
103 void localconfinit(void);
104 int leadgroup(int, int);
106 Msgbuf* mballoc(int, Chan*, int);
108 void mbfree(Msgbuf*);
109 Iobuf* movebuf(Iobuf*);
110 void mcatinit(Device*);
111 int mcatread(Device*, Off, void*);
112 Devsize mcatsize(Device*);
113 int mcatwrite(Device*, Off, void*);
114 void mirrinit(Device*);
115 int mirrread(Device*, Off, void*);
116 Devsize mirrsize(Device*);
117 int mirrwrite(Device*, Off, void*);
118 void mkqid(Qid*, Dentry*, int);
119 int mkqidcmp(Qid*, Dentry*);
120 void mkqid9p1(Qid9p1*, Qid*);
121 void mkqid9p2(Qid*, Qid9p1*, int);
122 void mlevinit(Device*);
123 int mlevread(Device*, Off, void*);
124 Devsize mlevsize(Device*);
125 int mlevwrite(Device*, Off, void*);
127 void newscsi(Device *d, Scsi *sc);
128 Queue* newqueue(int, char*);
131 char* nvrgetconfig(void);
132 int nvrsetconfig(char*);
134 vlong number(char*, int, int);
135 int okay(char *quest);
137 void panic(char*, ...);
138 void partinit(Device*);
139 int partread(Device*, Off, void*);
140 Devsize partsize(Device*);
141 int partwrite(Device*, Off, void*);
143 void preread(Device*, Off);
146 Off qidpathgen(Device*);
147 void* querychanger(Device *);
150 void* fs_recv(Queue*, int);
151 void rootream(Device*, Off);
152 int roread(Device*, Off, void*);
153 int scsiio(Device*, int, uchar*, int, void*, int);
155 Off scsiread(int, void*, long);
156 Devsize scsiseek(int, Devsize);
157 Off scsiwrite(int, void*, long);
159 void sec2rtc(Timet, Rtc *);
160 void fs_send(Queue*, void*);
162 int serve9p2(Msgbuf*);
163 void settag(Iobuf*, int, long);
165 Off superaddr(Device*);
166 void superream(Device*, Off);
167 void swab(void*, int);
173 int testconfig(char *s);
175 Timet nextime(Timet, int, int);
176 Tlock* tlocked(Iobuf*, Dentry*);
178 void uidtostr(char*, int, int);
180 void newproc(void(*)(void *), void*, char*);
181 void wormcopy(void *);
182 void wormprobe(void);
183 void synccopy(void *);
184 long wormsearch(Device*, int, long, long);
185 int wormread(Device*, Off, void*);
186 Devsize wormsize(Device*);
187 Devsize wormsizeside(Device *, int side);
188 void wormsidestarts(Device *dev, int side, Sidestarts *stp);
189 int wormwrite(Device*, Off, void*);
190 void wreninit(Device*);
191 int wrenread(Device*, Off, void*);
192 Devsize wrensize(Device*);
193 int wrenwrite(Device*, Off, void*);
194 void cmd_exec(char*);
195 void cmd_install(char*, char*, void (*)(int, char*[]));
196 ulong flag_install(char*, char*);
198 Chan *srvchan(int, char *);