annotate src/interface/fs.dg @ 247:1ba0ca4113e1

tweak
author menikon
date Sun, 02 Feb 2020 00:23:12 +0900
parents 9ceb72e05468
children f26b3dcbc6db
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
233
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
1 typedef struct fs<Type,Impl> {
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
2 union Data* fs;
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
3 struct superblock* sb;
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
4 uint dev;
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
5 short type;
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
6 struct inode* ip;
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
7 struct stat* st;
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
8 char* dst;
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
9 uint off;
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
10 uint n;
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
11 const char* s;
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
12 const char* t;
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
13 struct inode* dp;
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
14 char* name;
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
15 uint* poff;
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
16 uint inum;
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
17 char* path;
236
menikon
parents: 235
diff changeset
18 char* src;
247
menikon
parents: 236
diff changeset
19 int namex_val;
233
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
20
235
menikon
parents: 233
diff changeset
21 __code readsb(Impl* fs, uint dev, struct superblock* sb, __code next(...));
233
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
22 __code iinit(Impl* fs, __code next(...));
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
23 __code ialloc(Impl* fs, uint dev, short type, __code next(...));
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
24 __code iupdate(Impl* fs, struct inode* ip, __code next(...));
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
25 __code idup(Impl* fs, struct inode* ip, __code next(...));
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
26 __code ilock(Impl* fs, struct inode* ip, __code next(...));
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
27 __code iunlock(Impl* fs, struct inode* ip, __code next(...));
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
28 __code iput(Impl* fs, struct inode* ip, __code next(...));
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
29 __code iunlockput(Impl* fs, struct inode* ip, __code next(...));
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
30 __code stati(Impl* fs , struct inode* ip, struct stat* st, __code next(...));
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
31 __code readi(Impl* fs, struct inode* ip, char* dst, uint off, uint n, __code next(...));
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
32 __code writei(Impl* fs, struct inode* ip, char* src, uint off, uint n, __code next(...));
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
33 __code namecmp(Impl* fs, const char* s, const char* t, __code next(...));
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
34 __code dirlookup(struct inode* dp, char* name, uint* poff, __code next(...));
235
menikon
parents: 233
diff changeset
35 __code dirlink(Impl* fs, struct inode* dp, char* name, uint inum, __code next(...));
247
menikon
parents: 236
diff changeset
36 __code namei(Impl* fs, char* path, __code next(int namex_val, ...));
menikon
parents: 236
diff changeset
37 __code nameiparent(Impl* fs, char* path, char* name, __code next(int namex_val, ...));
236
menikon
parents: 235
diff changeset
38 __code next(...);
233
08a367c3124a add FileSystem files
menikon
parents:
diff changeset
39 } fs;