/base/security/selinux_adapter/interfaces/policycoreutils/src/ |
D | selinux_share_mem.c | 23 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/ |
D | last_kmsg | 52 …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/ |
D | param_osadp.c | 113 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/ |
D | param_osadp.c | 81 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/ |
D | param_common.h | 112 uint32_t spaceSize; member 141 uint32_t spaceSize[0]; member
|
D | param_trie.h | 35 INIT_LOCAL_API int InitWorkSpace(WorkSpace *workSpace, int onlyRead, uint32_t spaceSize);
|
D | param_osadp.h | 149 INIT_LOCAL_API void *GetSharedMem(const char *fileName, MemHandle *handle, uint32_t spaceSize, int …
|
/base/security/selinux_adapter/interfaces/policycoreutils/include/ |
D | selinux_share_mem.h | 38 void *InitSharedMem(const char *fileName, uint32_t spaceSize, bool readOnly);
|
/base/startup/init/services/param/base/ |
D | param_base.c | 140 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()
|
D | param_trie.c | 39 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/ |
D | param_server.c | 492 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_()
|
D | param_manager.c | 165 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/ |
D | last_kmsg | 52 …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/ |
D | last_kmsg | 52 …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/ |
D | last_kmsg | 52 …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/ |
D | last_kmsg | 52 …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/ |
D | last_kmsg | 52 …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/ |
D | sys_param.h | 110 uint32_t spaceSize; member
|