sofs19  0.1
FUSE based file system
freelists.h
Go to the documentation of this file.
1 
11 #ifndef __SOFS19_FREELISTS__
12 #define __SOFS19_FREELISTS__
13 
14 #include <inttypes.h>
15 
16 namespace sofs19
17 {
18 
32  /* *************************************************** */
33 
56  uint32_t soAllocInode(uint32_t type, uint32_t perm);
57 
58  /* *************************************************** */
59 
71  void soFreeInode(uint32_t in);
72 
73  /* *************************************************** */
74 
89  uint32_t soAllocDataBlock();
90 
91  /* *************************************************** */
92 
106  void soFreeDataBlock(uint32_t bn);
107 
108  /* *************************************************** */
109 
130  void soReplenishHeadCache();
131 
132  /* *************************************************** */
133 
152  void soDepleteTailCache();
153 
154  /* *************************************************** */
155 
157  /* *************************************************** */
158 
159 };
160 
161 #endif /* __SOFS19_FREELISTS__ */
sofs19::soFreeInode
void soFreeInode(uint32_t in)
Free the referenced inode.
sofs19::soAllocInode
uint32_t soAllocInode(uint32_t type, uint32_t perm)
Allocate a free inode.
sofs19::soReplenishHeadCache
void soReplenishHeadCache()
Replenish the head cache.
sofs19::soAllocDataBlock
uint32_t soAllocDataBlock()
Allocate a free data block.
sofs19::soDepleteTailCache
void soDepleteTailCache()
Deplete the tail cache.
sofs19::soFreeDataBlock
void soFreeDataBlock(uint32_t bn)
Free the referenced data block.