|
VOID | BcacheAnalyse (UINT32 level) |
|
VOID | LOS_SetDirtyRatioThreshold (UINT32 dirtyRatio) |
|
VOID | LOS_SetSyncThreadInterval (UINT32 interval) |
| 设置同步间隔,5秒 更多...
|
|
INT32 | LOS_SetSyncThreadPrio (UINT32 prio, const CHAR *name) |
| 设置同步任务优先级,10 更多...
|
|
static OsBcacheBlock * | RbFindBlock (const OsBcache *bc, UINT64 num) |
| 红黑树找块 更多...
|
|
static VOID | RbAddBlock (OsBcache *bc, OsBcacheBlock *block) |
| 添加缓存块 更多...
|
|
static VOID | RbDelBlock (OsBcache *bc, OsBcacheBlock *block) |
| 删除红黑树块 更多...
|
|
static VOID | ListMoveBlockToHead (OsBcache *bc, OsBcacheBlock *block) |
| 删除红黑树块 更多...
|
|
static VOID | FreeBlock (OsBcache *bc, OsBcacheBlock *block) |
| 释放块 更多...
|
|
static UINT32 | GetValLog2 (UINT32 val) |
|
static INT32 | FindFlagPos (const UINT32 *arr, UINT32 len, UINT32 *p1, UINT32 *p2) |
|
static INT32 | BlockRead (OsBcache *bc, OsBcacheBlock *block, UINT8 *buf) |
|
static INT32 | BcacheGetFlag (OsBcache *bc, OsBcacheBlock *block) |
|
static VOID | BcacheSetFlag (const OsBcache *bc, OsBcacheBlock *block, UINT32 pos, UINT32 size) |
|
static INT32 | BcacheSyncBlock (OsBcache *bc, OsBcacheBlock *block) |
|
static void | NumListAdd (OsBcache *bc, OsBcacheBlock *block) |
|
static void | AddBlock (OsBcache *bc, OsBcacheBlock *block) |
|
static void | DelBlock (OsBcache *bc, OsBcacheBlock *block) |
|
static BOOL | BlockAllDirty (const OsBcache *bc, OsBcacheBlock *block) |
|
static OsBcacheBlock * | GetBaseBlock (OsBcache *bc) |
|
static OsBcacheBlock * | GetSlowBlock (OsBcache *bc, BOOL read) |
|
static VOID | WriteMergedBlocks (OsBcache *bc, OsBcacheBlock *begin, int blocks) |
|
static VOID | MergeSyncBlocks (OsBcache *bc, OsBcacheBlock *start) |
|
static UINT64 | GetMinWriteNum (OsBcache *bc) |
|
static OsBcacheBlock * | AllocNewBlock (OsBcache *bc, BOOL read, UINT64 num) |
|
static INT32 | BcacheSync (OsBcache *bc) |
|
static VOID | BlockInit (OsBcache *bc, OsBcacheBlock *block, UINT64 num) |
|
static INT32 | BcacheGetBlock (OsBcache *bc, UINT64 num, BOOL readData, OsBcacheBlock **dblock) |
|
INT32 | BcacheClearCache (OsBcache *bc) |
|
static INT32 | BcacheInitCache (OsBcache *bc, UINT8 *memStart, UINT32 memSize, UINT32 blockSize) |
| 块设备缓存初始化 更多...
|
|
static INT32 | DrvBread (struct Vnode *priv, UINT8 *buf, UINT32 len, UINT64 pos) |
| 读块设备数据 更多...
|
|
static INT32 | DrvBwrite (struct Vnode *priv, const UINT8 *buf, UINT32 len, UINT64 pos) |
| 写块设备数据 更多...
|
|
INT32 | BlockCacheDrvCreate (VOID *handle, UINT8 *memStart, UINT32 memSize, UINT32 blockSize, OsBcache *bc) |
| 初始化块设备 更多...
|
|
INT32 | BlockCacheRead (OsBcache *bc, UINT8 *buf, UINT32 *len, UINT64 sector, BOOL useRead) |
| 读块设备缓存 更多...
|
|
INT32 | BlockCacheWrite (OsBcache *bc, const UINT8 *buf, UINT32 *len, UINT64 sector) |
| 写块设备缓存 更多...
|
|
INT32 | BlockCacheSync (OsBcache *bc) |
| 块缓存同步 更多...
|
|
INT32 | OsSdSync (INT32 id) |
|
INT32 | LOS_BcacheSyncByName (const CHAR *name) |
|
INT32 | BcacheGetDirtyRatio (INT32 id) |
|
INT32 | LOS_GetDirtyRatioByName (const CHAR *name) |
|
static VOID | BcacheSyncThread (UINT32 id) |
|
VOID | BcacheSyncThreadInit (OsBcache *bc, INT32 id) |
| 块缓存同步任务初始化,开了个内核任务. 更多...
|
|
VOID | BcacheSyncThreadDeinit (const OsBcache *bc) |
|
OsBcache * | BlockCacheInit (struct Vnode *devNode, UINT32 sectorSize, UINT32 sectorPerBlock, UINT32 blockNum, UINT64 blockCount) |
|
VOID | BlockCacheDeinit (OsBcache *bcache) |
|
static VOID | BcacheAsyncPrereadThread (VOID *arg) |
|
VOID | ResumeAsyncPreread (OsBcache *arg1, const OsBcacheBlock *arg2) |
|
UINT32 | BcacheAsyncPrereadInit (OsBcache *bc) |
|
UINT32 | BcacheAsyncPrereadDeinit (OsBcache *bc) |
|