annotate src/interface/fs.dg @ 294:08a367c3124a

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