Home
last modified time | relevance | path

Searched refs:spaceSize (Results 1 – 18 of 18) 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/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest018/
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/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/startup/init/services/param/include/
Dparam_common.h112 uint32_t spaceSize; member
141 uint32_t spaceSize[0]; member
Dparam_trie.h35 INIT_LOCAL_API int InitWorkSpace(WorkSpace *workSpace, int onlyRead, uint32_t spaceSize);
Dparam_osadp.h149 INIT_LOCAL_API void *GetSharedMem(const char *fileName, MemHandle *handle, uint32_t spaceSize, int …
/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_base.c140 node->spaceSize[WORKSPACE_INDEX_DAC] = PARAM_WORKSPACE_DAC; in AllocSpaceMemory()
141 node->spaceSize[WORKSPACE_INDEX_BASE] = PARAM_WORKSPACE_MAX; in AllocSpaceMemory()
143 node->spaceSize[i] = PARAM_WORKSPACE_MIN; in AllocSpaceMemory()
144 PARAM_LOGV("AllocSpaceMemory spaceSize index %u %u", i, node->spaceSize[i]); in AllocSpaceMemory()
146 paramSpace->workSpace[i]->spaceSize = PARAM_WORKSPACE_MIN; in AllocSpaceMemory()
273 …LOCAL_API int AddWorkSpace(const char *name, uint32_t labelIndex, int onlyRead, uint32_t spaceSize) in AddWorkSpace() argument
292 workSpace->spaceSize = spaceSize; in AddWorkSpace()
304 if (spaceSize != 0) { in AddWorkSpace()
310 paramSpace->workSpace[labelIndex]->spaceSize = workSpaceSize->spaceSize[labelIndex]; in AddWorkSpace()
354 ret = InitWorkSpace(workSpace, readOnly, workSpace->spaceSize); in OpenWorkSpace()
Dparam_trie.c39 static int InitWorkSpace_(WorkSpace *workSpace, uint32_t spaceSize, int readOnly) in InitWorkSpace_() argument
42 PARAM_CHECK(sizeof(ParamTrieHeader) < spaceSize, in InitWorkSpace_()
43 … return PARAM_CODE_INVALID_PARAM, "Invalid spaceSize %u name %s", spaceSize, workSpace->fileName); in InitWorkSpace_()
48 void *areaAddr = GetSharedMem(buffer, &workSpace->memHandle, spaceSize, readOnly); in InitWorkSpace_()
57 workSpace->area->dataSize = spaceSize - sizeof(ParamTrieHeader); in InitWorkSpace_()
93 INIT_LOCAL_API int InitWorkSpace(WorkSpace *workSpace, int onlyRead, uint32_t spaceSize) in InitWorkSpace() argument
99 int ret = InitWorkSpace_(workSpace, spaceSize, onlyRead); in InitWorkSpace()
/base/startup/init/services/param/manager/
Dparam_server.c492 WorkSpaceSize *spaceSize = GetWorkSpaceSize(GetWorkSpace(WORKSPACE_INDEX_SIZE)); in LoadOneParamAreaSize_() local
493 PARAM_CHECK(spaceSize != NULL, return PARAM_CODE_ERROR, "Failed to get workspace size"); in LoadOneParamAreaSize_()
498 for (uint32_t i = WORKSPACE_INDEX_BASE + 1; i < spaceSize->maxLabelIndex; i++) { in LoadOneParamAreaSize_()
503 spaceSize->spaceSize[i] = size; in LoadOneParamAreaSize_()
504 paramSpace->workSpace[i]->spaceSize = size; in LoadOneParamAreaSize_()
Dparam_manager.c165 PARAM_DUMP(" space size : %d \n", workSpace->spaceSize); in HashNodeTraverseForDump()
219 WorkSpaceSize *spaceSize = GetWorkSpaceSize(GetWorkSpace(WORKSPACE_INDEX_SIZE)); in SystemDumpParameters() local
220 if (spaceSize != NULL) { in SystemDumpParameters()
221 PARAM_DUMP("Max label index : %u\n", spaceSize->maxLabelIndex); in SystemDumpParameters()
222 for (uint32_t i = 0; i < spaceSize->maxLabelIndex; i++) { in SystemDumpParameters()
223 if (spaceSize->spaceSize[i] == PARAM_WORKSPACE_MIN) { in SystemDumpParameters()
226 PARAM_DUMP("\t workspace %u size : %u\n", i, spaceSize->spaceSize[i]); in SystemDumpParameters()
/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/SmartParserTest014/
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/SmartParserTest015/
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 …]
/base/startup/init/interfaces/innerkits/include/param/
Dsys_param.h110 uint32_t spaceSize; member