/base/security/huks/utils/list/ |
D | hks_double_list.c | 32 void AddNodeAfterDoubleListHead(struct DoubleList *head, struct DoubleList *node) in AddNodeAfterDoubleListHead() argument 34 if ((head == NULL) || (node == NULL)) { in AddNodeAfterDoubleListHead() 38 if (head->next == NULL) { in AddNodeAfterDoubleListHead() 39 head->next = head; in AddNodeAfterDoubleListHead() 42 head->next->prev = node; in AddNodeAfterDoubleListHead() 43 node->next = head->next; in AddNodeAfterDoubleListHead() 44 node->prev = head; in AddNodeAfterDoubleListHead() 45 head->next = node; in AddNodeAfterDoubleListHead() 48 void AddNodeAtDoubleListTail(struct DoubleList *head, struct DoubleList *node) in AddNodeAtDoubleListTail() argument 50 if ((head == NULL) || (node == NULL)) { in AddNodeAtDoubleListTail() [all …]
|
D | hks_double_list.h | 30 void AddNodeAfterDoubleListHead(struct DoubleList *head, struct DoubleList *node); 32 void AddNodeAtDoubleListTail(struct DoubleList *head, struct DoubleList *node); 45 #define HKS_DLIST_ITER(st, head) \ argument 47 …for (p = (head)->next, (st) = (__typeof__(st))p; p != (head); p = p->next, (st) = (__typeof__(st))… 49 #define HKS_DLIST_SAFT_ITER(st, head) \ argument 52 for (p = (head)->next, (st) = (__typeof__(st))p, _tmp = *p; p != (head); \
|
/base/startup/init/services/utils/ |
D | list.c | 45 void OH_ListAddTail(struct ListNode *head, struct ListNode *item) in OH_ListAddTail() argument 47 if (head == NULL || item == NULL) { in OH_ListAddTail() 50 item->next = head; in OH_ListAddTail() 51 item->prev = head->prev; in OH_ListAddTail() 52 head->prev->next = item; in OH_ListAddTail() 53 head->prev = item; in OH_ListAddTail() 83 void OH_ListAddWithOrder(struct ListNode *head, struct ListNode *item, ListCompareProc compareProc) in OH_ListAddWithOrder() argument 87 if (head == NULL || item == NULL || compareProc == NULL) { in OH_ListAddWithOrder() 91 match = head->next; in OH_ListAddWithOrder() 92 while ((match != NULL) && (match != head)) { in OH_ListAddWithOrder() [all …]
|
/base/security/device_security_level/baselib/utils/include/ |
D | utils_list.h | 45 static inline int IsEmptyList(ListHead *head) in IsEmptyList() argument 47 return head->next == head; in IsEmptyList() 50 static inline void InitListHead(ListHead *head) in InitListHead() argument 52 head->next = head; in InitListHead() 53 head->prev = head; in InitListHead() 61 #define FOREACH_LIST_NODE(item, head) for ((item) = (head)->next; (item) != (head); (item) = (item)… argument 63 #define FOREACH_LIST_NODE_SAFE(item, head, temp) \ argument 64 …for ((item) = (head)->next, (temp) = (item)->next; (item) != (head); (item) = (temp), (temp) = (it…
|
/base/startup/init/services/param/trigger/ |
D | trigger_manager.c | 298 TriggerHeader *head = GetTriggerHeader(workSpace, trigger->type); in FreeTrigger() local 299 if (head != NULL) { in FreeTrigger() 300 head->delTrigger(workSpace, trigger); in FreeTrigger() 307 TriggerHeader *head = GetTriggerHeader(workSpace, type); in ClearTrigger() local 308 PARAM_CHECK(head != NULL, return, "Failed to get header %d", type); in ClearTrigger() 309 TriggerNode *trigger = head->nextTrigger(head, NULL); in ClearTrigger() 311 TriggerNode *next = head->nextTrigger(head, trigger); in ClearTrigger() 315 OH_ListInit(&head->triggerList); in ClearTrigger() 388 TriggerHeader *head = GetTriggerHeader(workSpace, type); in ExecTriggerMatch_() local 389 PARAM_CHECK(head != NULL, return 0, "Failed to get header %d", type); in ExecTriggerMatch_() [all …]
|
/base/hiviewdfx/hilog_lite/services/hilogcat/ |
D | hiview_logcat.c | 55 struct HiLogEntry *head = (struct HiLogEntry *)buf; in main() local 60 unsigned int sec = head->sec; in main() 65 printFlag = FilterLevelLog(g_hiviewConfig.level, *(head->msg)); in main() 70 printFlag = FilterModuleLog(g_hiviewConfig.logOutputModule, (head->msg) + MODULE_OFFSET); in main() 79 info->tm_sec, head->nsec / NANOSEC_PER_MIRCOSEC, head->pid, head->taskId, head->msg); in main()
|
/base/security/permission_lite/services/pms/src/ |
D | perm_operate.c | 25 TNode *cur = list->head; in PermissionIsGranted() 58 if (list->head == NULL) { in AddTask() 59 list->head = node; in AddTask() 61 node->next = list->head; in AddTask() 62 list->head = node; in AddTask() 68 TNode *cur = list->head; in DeleteTask() 73 list->head = cur->next; in DeleteTask() 88 TNode *cur = list->head; in GetTaskWithUid() 100 TNode *cur = list->head; in GetTaskWithPkgName()
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/ |
D | cert_manager_double_list.h | 47 #define CM_DLIST_ITER(st, head) \ argument 49 …for (p = (head)->next, (st) = (__typeof__(st))p; p != (head); p = p->next, (st) = (__typeof__(st))… 51 #define CM_DLIST_SAFT_ITER(st, head) \ argument 54 for (p = (head)->next, (st) = (__typeof__(st))p, tmp = *p; p != (head); \
|
/base/security/device_security_level/services/dslm/ |
D | dslm_msg_utils.c | 38 JsonHandle head = CreateJson(NULL); in GenerateSecInfoResponseJson() local 39 if (head == NULL) { in GenerateSecInfoResponseJson() 45 DestroyJson(head); in GenerateSecInfoResponseJson() 49 AddFieldIntToJson(head, FIELD_MESSAGE, MSG_TYPE_DSLM_CRED_RESPONSE); in GenerateSecInfoResponseJson() 50 AddFieldJsonToJson(head, FIELD_PAYLOAD, body); in GenerateSecInfoResponseJson() 64 out = (uint8_t *)ConvertJsonToString(head); in GenerateSecInfoResponseJson() 66 if (head != NULL) { in GenerateSecInfoResponseJson() 67 DestroyJson(head); in GenerateSecInfoResponseJson() 82 JsonHandle head = CreateJson(NULL); in GenerateSecInfoRequestJson() local 83 if (head == NULL) { in GenerateSecInfoRequestJson() [all …]
|
/base/hiviewdfx/hilog_lite/services/apphilogcat/ |
D | hiview_applogcat.c | 195 struct HiLogEntry *head = (struct HiLogEntry *)buf; in main() local 197 if (NeedFlush(head->msg)) { in main() 207 unsigned int sec = head->sec; in main() 212 printFlag = FilterLevelLog(g_hiviewConfig.level, *(head->msg)); in main() 217 printFlag = FilterModuleLog(g_hiviewConfig.logOutputModule, (head->msg) + MODULE_OFFSET); in main() 229 …info->tm_min, info->tm_sec, head->nsec / NANOSEC_PER_MIRCOSEC, head->pid, head->taskId, head->msg); in main() 234 …info->tm_min, info->tm_sec, head->nsec / NANOSEC_PER_MIRCOSEC, head->pid, head->taskId, head->msg); in main()
|
/base/startup/init/test/unittest/param/ |
D | param_stub.cpp | 96 ParamContextsList *head = *list; in TestDestroyParamList() local 97 while (head != nullptr) { in TestDestroyParamList() 98 ParamContextsList *next = head->next; in TestDestroyParamList() 99 free((void *)head->info.paraName); in TestDestroyParamList() 100 free((void *)head->info.paraContext); in TestDestroyParamList() 101 free(head); in TestDestroyParamList() 102 head = next; in TestDestroyParamList() 109 ParamContextsList *head = (ParamContextsList *)malloc(sizeof(ParamContextsList)); in TestGetParamList() local 110 BEGET_ERROR_CHECK(head != nullptr, return nullptr, "Failed to alloc ParamContextsList"); in TestGetParamList() 111 head->info.paraName = strdup(selinuxLabels[0][0]); in TestGetParamList() [all …]
|
/base/startup/init/services/include/ |
D | list.h | 131 void OH_ListAddWithOrder(struct ListNode *head, struct ListNode *item, ListCompareProc compareProc); 151 ListNode *OH_ListFind(const ListNode *head, void *data, ListTraversalProc compareProc); 172 int OH_ListTraversal(ListNode *head, void *data, ListTraversalProc traversalProc, unsigned int flag… 189 void OH_ListRemoveAll(ListNode *head, ListDestroyProc destroyProc); 197 int OH_ListGetCnt(const ListNode *head);
|
/base/security/device_security_level/baselib/utils/src/ |
D | utils_work_queue.c | 31 ListHead head; member 57 while ((IsEmptyList(&queue->head)) && (queue->state == RUN)) { in WorkQueueThread() 65 worker = LIST_ENTRY(queue->head.next, Worker, linkNode); in WorkQueueThread() 76 while (!IsEmptyList(&queue->head)) { in WorkQueueThread() 77 worker = LIST_ENTRY(queue->head.next, Worker, linkNode); in WorkQueueThread() 95 InitListHead(&(queue->head)); in CreateWorkQueue() 173 AddListNodeBefore(&worker->linkNode, &queue->head); in QueueWork()
|
D | utils_state_machine.c | 64 ListHead *head = &machine->pendingEventList; in PopPendingEvent() local 65 if (IsEmptyList(head)) { in PopPendingEvent() 68 PendingEvent *pending = LIST_ENTRY(head->next, PendingEvent, link); in PopPendingEvent()
|
/base/telephony/ril_adapter/services/vendor/src/ |
D | at_modem.c | 111 if (pResponse->head != NULL) { in ReqGetRadioState() 112 pLine = pResponse->head->data; in ReqGetRadioState() 152 if (responseInfo->head == NULL) { in ReqGetImei() 157 char *imeiSn = responseInfo->head->data; in ReqGetImei() 189 if (responseInfo->head == NULL) { in ReqGetMeid() 194 char *meidSn = responseInfo->head->data; in ReqGetMeid() 319 if (responseInfo->head != NULL) { in ReqGetVoiceRadioTechnology() 320 result = responseInfo->head->data; in ReqGetVoiceRadioTechnology()
|
/base/security/selinux/interfaces/policycoreutils/src/ |
D | contexts_trie.c | 190 static bool InsertContextsList(ParamContextsList **head, const char *param, const char *context) in InsertContextsList() argument 192 if (head == NULL || param == NULL || context == NULL) { in InsertContextsList() 203 (*head)->next = node; in InsertContextsList() 204 *head = (*head)->next; in InsertContextsList() 296 SharedMem *head = memPtr; in LoadParameterContextsToSharedMem() local 320 UnmapSharedMem((char *)head, SELINUX_PARAM_SPACE); in LoadParameterContextsToSharedMem()
|
/base/startup/init/services/param/adapter/ |
D | param_dac.c | 336 char *head = str; in UserNameTrim() local 338 while (head < end && (*head == ' ' || *head == '\t' || *head == '\n' || *head == '\r')) { in UserNameTrim() 339 *head = '\0'; in UserNameTrim() 340 head++; in UserNameTrim() 345 return head; in UserNameTrim()
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
D | dfx_frame.cpp | 135 uint64_t DfxFrame::GetRelativePc(const std::shared_ptr<DfxElfMaps> head) in GetRelativePc() argument 137 if (head == nullptr) { in GetRelativePc() 142 if (!head->FindMapByAddr(pc_, map_)) { in GetRelativePc() 153 if (!head->FindMapByPath(map_->GetMapPath(), map)) { in GetRelativePc()
|
/base/startup/init/interfaces/innerkits/sandbox/ |
D | sandbox.c | 183 static void RemoveOldSandboxMountListNode(ListNode *head, const char *targetMount) in RemoveOldSandboxMountListNode() argument 185 if ((head == NULL) || (targetMount == NULL)) { in RemoveOldSandboxMountListNode() 188 ListNode *node = OH_ListFind(head, (void *)targetMount, CompareSandboxListForMountTarget); in RemoveOldSandboxMountListNode() 209 static void RemoveOldSandboxLinkListNode(ListNode *head, const char *linkName) in RemoveOldSandboxLinkListNode() argument 211 if ((head == NULL) || (linkName == NULL)) { in RemoveOldSandboxLinkListNode() 214 ListNode *node = OH_ListFind(head, (void *)linkName, CompareSandboxListForLinkName); in RemoveOldSandboxLinkListNode() 492 static int MountSandboxInfo(struct ListNode *head, const char *rootPath, SandboxTag tag) in MountSandboxInfo() argument 494 if ((head == NULL) || (rootPath == NULL)) { in MountSandboxInfo() 497 int ret = OH_ListTraversal(head, (void *)rootPath, MountSandboxNode, 1); in MountSandboxInfo() 523 static int LinkSandboxInfo(struct ListNode *head, const char *rootPath) in LinkSandboxInfo() argument [all …]
|
/base/hiviewdfx/hidumper/services/native/src/ |
D | dump_common_utils.cpp | 173 bool DumpCommonUtils::StartWith(const std::string& str, const std::string& head) in StartWith() argument 175 if (str.length() < head.length()) { in StartWith() 178 return (str.compare(0, head.size(), head) == 0); in StartWith()
|
/base/startup/init/interfaces/innerkits/fs_manager/ |
D | fstab.c | 81 if (fstab->head != NULL) { in AddToFstab() 82 item->next = fstab->head->next; in AddToFstab() 83 fstab->head->next = item; in AddToFstab() 85 fstab->head = item; in AddToFstab() 120 FstabItem *item = fstab->head; in ReleaseFstab() 260 for (item = fstab.head; item != NULL; item = item->next) { in FindFstabItemForMountPoint() 347 for (FstabItem *item = fstab->head; item != NULL; item = item->next) { in GetBlockDeviceByName()
|
/base/security/selinux/test/unittest/paraperm_checker/ |
D | unit_test.cpp | 75 ParamContextsList *head = buff; variable 89 DestroyParamList(&head); 90 ASSERT_EQ(nullptr, head);
|
/base/hiviewdfx/hidumper/frameworks/native/src/executor/ |
D | hidumper_executor.cpp | 131 std::string HidumperExecutor::GetTimeoutStr(std::string head) const in GetTimeoutStr() 133 return head + TIME_OUT_STR; in GetTimeoutStr()
|
/base/security/permission_lite/services/pms/include/ |
D | perm_define.h | 72 TNode *head; member
|
/base/update/updater/services/fs_manager/ |
D | mount.cpp | 72 for (FstabItem *item = g_fstab->head; item != nullptr; item = item->next) { in LoadFstab() 207 if (g_fstab == NULL || g_fstab->head == NULL) { in SetupPartitions() 211 for (const FstabItem *item = g_fstab->head; item != nullptr; item = item->next) { in SetupPartitions()
|