-
Notifications
You must be signed in to change notification settings - Fork 7
/
xv6inode.pxd
55 lines (42 loc) · 1.53 KB
/
xv6inode.pxd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
from diskimpl cimport *
from bitmap cimport BitmapDisk
from waldisk cimport WALDisk
from inodepack cimport InodePackDisk
from dirinode cimport DirImpl
cdef class InodeDisk:
cdef public uint64_t _INODEDATADISK
cdef readonly uint64_t _NDIRECT
cdef WALDisk _txndisk
cdef object _Bitmap
cdef object _Allocator
cdef object _Inode
cdef Allocator _allocator
cdef readonly BitmapDisk _bitmap
cdef InodePackDisk _inode
cdef void begin_tx(self)
cdef void commit_tx(self)
cdef Stat get_iattr(self, uint64_t ino)
cdef void set_iattr(self, uint64_t ino, Stat attr)
cdef Block read(self, uint64_t lbn)
cdef void write_tx(self, uint64_t lbn, Block data)
cdef uint64_t mappingi(self, uint64_t vbn)
cdef bint is_mapped(self, uint64_t vbn)
cdef bint is_free(self, uint64_t vbn)
cdef uint64_t alloc(self)
cdef void free(self, uint64_t lbn)
cdef uint64_t bmap(self, uint64_t vbn)
cdef void bunmap(self, uint64_t vbn)
cdef class IndirectInodeDisk:
cdef readonly uint64_t _NINDIRECT
cdef readonly InodeDisk _idisk
cdef void begin_tx(self)
cdef void commit_tx(self)
cdef Stat get_iattr(self, uint64_t ino)
cdef void set_iattr(self, uint64_t ino, Stat attr)
cdef Block read(self, uint64_t lbn)
cdef void write_tx(self, uint64_t lbn, Block data)
cdef uint64_t mappingi(self, uint64_t vbn)
cdef bint is_mapped(self, uint64_t vbn)
cdef bint is_free(self, uint64_t vbn)
cdef uint64_t bmap(self, uint64_t vbn)
cdef void bunmap(self, uint64_t vbn)