34#ifdef LOSCFG_DRIVERS_RANDOM
35#include "hisoc/random.h"
52 PRINT_ERR(
"MountAlloc failed no memory!\n");
61#ifdef LOSCFG_DRIVERS_RANDOM
63 (VOID)HiRandomHwGetInteger(&mnt->
hashseed);
76 PRINT_ERR(
"init mount list failed, no memory.");
LITE_OS_SEC_ALW_INLINE STATIC INLINE VOID LOS_ListInit(LOS_DL_LIST *list)
void * zalloc(size_t size)
static LIST_HEAD * g_mountList
LIST_HEAD * GetMountList()
获取装载链表,并初始化
struct Mount * MountAlloc(struct Vnode *vnodeBeCovered, struct MountOps *fsop)
举例: mount /dev/mmcblk0p0 /bin1/vs/sd vfat 将/dev/mmcblk0p0 挂载到/bin1/vs/sd目录
LIST_HEAD activeVnodeList
struct Vnode * vnodeBeCovered
vnode并不包含文件名,因为 vnode和文件名是 1:N 的关系