Home
last modified time | relevance | path

Searched refs:HksStorageFileLock (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/hks_storage/src/
H A Dhks_storage_file_lock.c28 struct HksStorageFileLock { struct
32 HksStorageFileLock *next; argument
35 static HksStorageFileLock *g_lockListFirst = NULL;
36 static HksStorageFileLock *g_lockListLast = NULL;
39 static void FreeFileLock(HksStorageFileLock *lock) in FreeFileLock()
64 HksStorageFileLock *iter = g_lockListFirst; in ClearLockList()
65 HksStorageFileLock *temp = NULL; in ClearLockList()
78 HksStorageFileLock *iter = g_lockListFirst; in FindFileLock()
91 HksStorageFileLock *lock = HksMalloc(sizeof(HksStorageFileLock)); in AllocFileLock()
114 static void AddRef(HksStorageFileLock *lock) in AddRef()
[all …]
H A Dhks_storage.c42 static HksStorageFileLock *CreateStorageFileLock(const char *path, const char *fileName) in CreateStorageFileLock()
54 HksStorageFileLock *lock = HksStorageFileLockCreate(fullPath); in CreateStorageFileLock()
64 HksStorageFileLock *lock = CreateStorageFileLock(path, fileName); in HksStorageWriteFile()
79 HksStorageFileLock *lock = CreateStorageFileLock(path, fileName); in HksStorageReadFile()
141 HksStorageFileLock *lock = CreateStorageFileLock(path, fileName); in HksStorageRemoveFile()
/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/hks_storage/include/
H A Dhks_storage_file_lock.h25 typedef struct HksStorageFileLock HksStorageFileLock; typedef
27 HksStorageFileLock *HksStorageFileLockCreate(const char *path);
28 int32_t HksStorageFileLockRead(HksStorageFileLock *lock);
29 int32_t HksStorageFileUnlockRead(HksStorageFileLock *lock);
30 int32_t HksStorageFileLockWrite(HksStorageFileLock *lock);
31 int32_t HksStorageFileUnlockWrite(HksStorageFileLock *lock);
32 void HksStorageFileLockRelease(HksStorageFileLock *lock);
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/storage_multithread_test/src/
H A Dhks_storage_file_lock_test.cpp34 HksStorageFileLock *lock = HksStorageFileLockCreate(&path[0]);
50 std::vector<HksStorageFileLock *> locks;
53 HksStorageFileLock *lock = HksStorageFileLockCreate(&path[0]);
67 std::vector<HksStorageFileLock *> locks;
69 HksStorageFileLock *lock = HksStorageFileLockCreate(&path[0]);
76 HksStorageFileLock *first = locks[0];
89 HksStorageFileLock *lock1 = HksStorageFileLockCreate(&path[0]);
91 HksStorageFileLock *lock2 = HksStorageFileLockCreate(&path[0]);