Home
last modified time | relevance | path

Searched refs:spaceSize (Results 1 – 12 of 12) sorted by relevance

/base/security/selinux_adapter/interfaces/policycoreutils/src/
Dselinux_share_mem.c23 void *InitSharedMem(const char *fileName, uint32_t spaceSize, bool readOnly) in InitSharedMem() argument
25 if (fileName == NULL || spaceSize == 0) { in InitSharedMem()
37 ftruncate(fd, spaceSize); in InitSharedMem()
39 void *sharedMem = (void *)mmap(NULL, spaceSize, prot, MAP_SHARED, fd, 0); in InitSharedMem()
/base/startup/init/services/param/liteos/
Dparam_osadp.c113 INIT_LOCAL_API void *GetSharedMem(const char *fileName, MemHandle *handle, uint32_t spaceSize, int … in GetSharedMem() argument
125 handle->shmid = shmget(key, spaceSize, IPC_CREAT | IPC_EXCL | 0666); // 0666 in GetSharedMem()
127 handle->shmid = shmget(key, spaceSize, 0); // 0666 in GetSharedMem()
218 __attribute__((weak)) void* GetSysParamMem(uint32_t spaceSize) in GetSysParamMem() argument
220 return malloc(spaceSize); in GetSysParamMem()
231 INIT_LOCAL_API void *GetSharedMem(const char *fileName, MemHandle *handle, uint32_t spaceSize, int … in GetSharedMem() argument
233 PARAM_CHECK(spaceSize <= PARAM_WORKSPACE_MAX, return NULL, "Invalid spaceSize %u", spaceSize); in GetSharedMem()
237 return GetSysParamMem(spaceSize); in GetSharedMem()
/base/startup/init/services/param/linux/
Dparam_osadp.c81 INIT_LOCAL_API void *GetSharedMem(const char *fileName, MemHandle *handle, uint32_t spaceSize, int … in GetSharedMem() argument
91 ftruncate(fd, spaceSize); in GetSharedMem()
93 void *areaAddr = (void *)mmap(NULL, spaceSize, prot, MAP_SHARED, fd, 0); in GetSharedMem()
/base/security/selinux_adapter/interfaces/policycoreutils/include/
Dselinux_share_mem.h38 void *InitSharedMem(const char *fileName, uint32_t spaceSize, bool readOnly);
/base/startup/init/services/param/base/
Dparam_trie.c36 static int InitWorkSpace_(WorkSpace *workSpace, uint32_t spaceSize, int readOnly) in InitWorkSpace_() argument
39 PARAM_CHECK(sizeof(ParamTrieHeader) < spaceSize, in InitWorkSpace_()
40 return PARAM_CODE_INVALID_PARAM, "Invalid spaceSize %u", spaceSize); in InitWorkSpace_()
45 void *areaAddr = GetSharedMem(buffer, &workSpace->memHandle, spaceSize, readOnly); in InitWorkSpace_()
54 workSpace->area->dataSize = spaceSize - sizeof(ParamTrieHeader); in InitWorkSpace_()
89 INIT_LOCAL_API int InitWorkSpace(WorkSpace *workSpace, int onlyRead, uint32_t spaceSize) in InitWorkSpace() argument
95 int ret = InitWorkSpace_(workSpace, spaceSize, onlyRead); in InitWorkSpace()
Dparam_base.c230 …LOCAL_API int AddWorkSpace(const char *name, uint32_t labelIndex, int onlyRead, uint32_t spaceSize) in AddWorkSpace() argument
247 workSpace->spaceSize = spaceSize; in AddWorkSpace()
260 paramSpace->workSpace[labelIndex]->spaceSize, onlyRead ? "true" : "false"); in AddWorkSpace()
317 ret = InitWorkSpace(workSpace, readOnly, workSpace->spaceSize); in OpenWorkSpace()
/base/startup/init/services/param/include/
Dparam_trie.h33 INIT_LOCAL_API int InitWorkSpace(WorkSpace *workSpace, int onlyRead, uint32_t spaceSize);
Dparam_common.h109 uint32_t spaceSize; member
Dparam_osadp.h149 INIT_LOCAL_API void *GetSharedMem(const char *fileName, MemHandle *handle, uint32_t spaceSize, int …
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest008/
Dlast_kmsg52 …INFO][param_base.c:257]AddWorkSpace u:object_r:default_param:s0 index 1 spaceSize: 10485760 onlyRe…
53 …pid=1][PARAM][INFO][param_base.c:257]AddWorkSpace param_sec_dac index 0 spaceSize: 20480 onlyRead …
74 …][param_base.c:257]AddWorkSpace u:object_r:servicectrl_param:s0 index 2 spaceSize: 1024 onlyRead f…
75 …_base.c:257]AddWorkSpace u:object_r:servicectrl_reboot_param:s0 index 3 spaceSize: 1024 onlyRead f…
76 …FO][param_base.c:257]AddWorkSpace u:object_r:ohos_boot_param:s0 index 4 spaceSize: 4096 onlyRead f…
77 …FO][param_base.c:257]AddWorkSpace u:object_r:bootevent_param:s0 index 5 spaceSize: 4096 onlyRead f…
78 …_base.c:257]AddWorkSpace u:object_r:servicectrl_reboot_param:s0 index 3 spaceSize: 1024 onlyRead f…
79 …aram_base.c:257]AddWorkSpace u:object_r:devinfo_public_param:s0 index 7 spaceSize: 30720 onlyRead …
80 …aram_base.c:257]AddWorkSpace u:object_r:devinfo_public_param:s0 index 7 spaceSize: 30720 onlyRead …
81 …aram_base.c:257]AddWorkSpace u:object_r:devinfo_public_param:s0 index 7 spaceSize: 30720 onlyRead …
[all …]
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest004/
Dlast_kmsg52 …INFO][param_base.c:257]AddWorkSpace u:object_r:default_param:s0 index 1 spaceSize: 10485760 onlyRe…
53 …pid=1][PARAM][INFO][param_base.c:257]AddWorkSpace param_sec_dac index 0 spaceSize: 20480 onlyRead …
74 …][param_base.c:257]AddWorkSpace u:object_r:servicectrl_param:s0 index 2 spaceSize: 1024 onlyRead f…
75 …_base.c:257]AddWorkSpace u:object_r:servicectrl_reboot_param:s0 index 3 spaceSize: 1024 onlyRead f…
76 …FO][param_base.c:257]AddWorkSpace u:object_r:ohos_boot_param:s0 index 4 spaceSize: 4096 onlyRead f…
77 …FO][param_base.c:257]AddWorkSpace u:object_r:bootevent_param:s0 index 5 spaceSize: 4096 onlyRead f…
78 …_base.c:257]AddWorkSpace u:object_r:servicectrl_reboot_param:s0 index 3 spaceSize: 1024 onlyRead f…
79 …aram_base.c:257]AddWorkSpace u:object_r:devinfo_public_param:s0 index 7 spaceSize: 30720 onlyRead …
80 …aram_base.c:257]AddWorkSpace u:object_r:devinfo_public_param:s0 index 7 spaceSize: 30720 onlyRead …
81 …aram_base.c:257]AddWorkSpace u:object_r:devinfo_public_param:s0 index 7 spaceSize: 30720 onlyRead …
[all …]
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest005/
Dlast_kmsg52 …INFO][param_base.c:257]AddWorkSpace u:object_r:default_param:s0 index 1 spaceSize: 10485760 onlyRe…
53 …pid=1][PARAM][INFO][param_base.c:257]AddWorkSpace param_sec_dac index 0 spaceSize: 20480 onlyRead …
74 …][param_base.c:257]AddWorkSpace u:object_r:servicectrl_param:s0 index 2 spaceSize: 1024 onlyRead f…
75 …_base.c:257]AddWorkSpace u:object_r:servicectrl_reboot_param:s0 index 3 spaceSize: 1024 onlyRead f…
76 …FO][param_base.c:257]AddWorkSpace u:object_r:ohos_boot_param:s0 index 4 spaceSize: 4096 onlyRead f…
77 …FO][param_base.c:257]AddWorkSpace u:object_r:bootevent_param:s0 index 5 spaceSize: 4096 onlyRead f…
78 …_base.c:257]AddWorkSpace u:object_r:servicectrl_reboot_param:s0 index 3 spaceSize: 1024 onlyRead f…
79 …aram_base.c:257]AddWorkSpace u:object_r:devinfo_public_param:s0 index 7 spaceSize: 30720 onlyRead …
80 …aram_base.c:257]AddWorkSpace u:object_r:devinfo_public_param:s0 index 7 spaceSize: 30720 onlyRead …
81 …aram_base.c:257]AddWorkSpace u:object_r:devinfo_public_param:s0 index 7 spaceSize: 30720 onlyRead …
[all …]