WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
bcache_proc.h 文件参考
#include "linux/seq_file.h"
#include "proc_fs.h"
bcache_proc.h 的引用(Include)关系图:

浏览源代码.

宏定义

#define BCACHE_PROC_ROOT   "fs"
 
#define BCACHE_PROC_NAME   "bcache_info"
 
#define BCACHE_STATS_START(start)   UINT64 (start) = LOS_CurrNanosec()
 
#define BCACHE_STATS_READ_END(bc, sectors, start)   UpdateReadStats(bc, sectors, start)
 
#define BCACHE_STATS_WRITE_END(bc, sectors, start)   UpdateWriteStats(bc, sectors, start)
 

函数

STATIC INLINE UINT32 BcacheProcInit (const struct inode *devNode, OsBcache *bcache)
 
STATIC INLINE VOID BcacheProcDeinit (const OsBcache *bcache)
 
STATIC INLINE VOID UpdateReadStats (const OsBcache *bc, UINT64 sectorCount, UINT64 startTime)
 
STATIC INLINE VOID UpdateWriteStats (const OsBcache *bc, UINT64 sectorCount, UINT64 startTime)
 

宏定义说明

◆ BCACHE_PROC_NAME

#define BCACHE_PROC_NAME   "bcache_info"

◆ BCACHE_PROC_ROOT

#define BCACHE_PROC_ROOT   "fs"

◆ BCACHE_STATS_READ_END

#define BCACHE_STATS_READ_END (   bc,
  sectors,
  start 
)    UpdateReadStats(bc, sectors, start)

◆ BCACHE_STATS_START

#define BCACHE_STATS_START (   start)    UINT64 (start) = LOS_CurrNanosec()

◆ BCACHE_STATS_WRITE_END

#define BCACHE_STATS_WRITE_END (   bc,
  sectors,
  start 
)    UpdateWriteStats(bc, sectors, start)

函数说明

◆ BcacheProcDeinit()

STATIC INLINE VOID BcacheProcDeinit ( const OsBcache bcache)

◆ BcacheProcInit()

STATIC INLINE UINT32 BcacheProcInit ( const struct inode *  devNode,
OsBcache bcache 
)

◆ UpdateReadStats()

STATIC INLINE VOID UpdateReadStats ( const OsBcache bc,
UINT64  sectorCount,
UINT64  startTime 
)

◆ UpdateWriteStats()

STATIC INLINE VOID UpdateWriteStats ( const OsBcache bc,
UINT64  sectorCount,
UINT64  startTime 
)