|
XenevaOS
|
#include <Mm/pmmngr.h>#include <Mm/vmmngr.h>#include <Mm/kmalloc.h>#include <list.h>#include <Mm/mmfile.h>#include <_null.h>#include <Drivers/uart.h>#include <Hal/AA64/aa64lowlevel.h>#include <string.h>
Functions | |
| void | AuMmngrFileCacheInit () |
| AuMmngrFileCacheInit – initialize copy-on-write manager. | |
| void | AuMmngrAddFileBack (AuMMFileBack *fb) |
| AuMmngrAddFileBack – add a file back to file list. | |
| void | AuMmngrRemoveFileBack (AuMMFileBack *fb) |
| AuThreadDelete – remove a thread from thread list. | |
| void | AuMmngrFileCacheEnable () |
| AuMmngrFileCacheEnable – enable file cache. | |
| AuMMFileBack * | AuMmngrFileCacheLookup (const char *filename) |
| uint64_t | AuMmngrFileCacheGetPhysicalBlock (AuMMFileBack *fb, uint32_t fileoffset) |
| AuMMPageCache * | AuMmngrFileCacheGetByIndex (AuMMFileBack *fb, size_t pageIndex) |
| AuMMPageCache * | AuMmngrPageCacheCreate () |
| AuMmngrPageCacheCreate – create page cache. | |
| void | AuMmngrFileBackAddPageCache (AuMMFileBack *fileb, AuMMPageCache *cache) |
| AuMmngrFileBackAddPageCache – add a page cache to file back. | |
| void AuMmngrAddFileBack | ( | AuMMFileBack * | fb | ) |
AuMmngrAddFileBack – add a file back to file list.
| fb | – Pointer to file back struct |
| void AuMmngrFileBackAddPageCache | ( | AuMMFileBack * | fileb, |
| AuMMPageCache * | cache | ||
| ) |
AuMmngrFileBackAddPageCache – add a page cache to file back.
| fileb | – Pointer to file back struct |
| cache | – Cache to add |
| void AuMmngrFileCacheEnable | ( | ) |
AuMmngrFileCacheEnable – enable file cache.
| AuMMPageCache * AuMmngrFileCacheGetByIndex | ( | AuMMFileBack * | fb, |
| size_t | pageIndex | ||
| ) |
| uint64_t AuMmngrFileCacheGetPhysicalBlock | ( | AuMMFileBack * | fb, |
| uint32_t | fileoffset | ||
| ) |
AuMmngrFileCacheGetPhysicalBlock – returns a physical block of a file relative to file offset in bytes
| fb | – pointer to file back structure |
| fileoffset | – offset in bytes within the file |
| void AuMmngrFileCacheInit | ( | ) |
AuMmngrFileCacheInit – initialize copy-on-write manager.
| AuMMFileBack * AuMmngrFileCacheLookup | ( | const char * | filename | ) |
AuMmngrFileCacheLookup – lookup the file cache list for specific file if it's already opened
| filename | – name of the file to lookup |
| AuMMPageCache * AuMmngrPageCacheCreate | ( | ) |
AuMmngrPageCacheCreate – create page cache.
| void AuMmngrRemoveFileBack | ( | AuMMFileBack * | fb | ) |
AuThreadDelete – remove a thread from thread list.
| thread | – thread address to remove |