/base/security/selinux_adapter/interfaces/policycoreutils/src/ |
D | selinux_map.c | 30 static int GroupNodeNodeCompare(const HashNode *node1, const HashNode *node2) in GroupNodeNodeCompare() 37 static int GroupNodeKeyCompare(const HashNode *node1, const char *key) in GroupNodeKeyCompare() 43 static int GroupNodeGetNodeHashCode(const HashNode *node) in GroupNodeGetNodeHashCode() 49 static void GroupNodeFree(const HashNode *node) in GroupNodeFree() 61 HashTab *tab = (HashTab *)calloc(1, sizeof(HashTab) + sizeof(HashNode *) * MAX_BUCKET); in HashMapCreate() 69 static HashNode *GetHashNodeByNode(HashNode *root, const HashNode *nodeKey) in GetHashNodeByNode() 81 static HashNode *GetHashNodeByKey(HashNode *root, const char *key) in GetHashNodeByKey() 93 int32_t HashMapAdd(HashTab *handle, HashNode *node) in HashMapAdd() 103 HashNode *tmp = GetHashNodeByNode(handle->buckets[hashCode], node); in HashMapAdd() 112 HashNode *HashMapGet(HashTab *handle, const char *key, uint32_t len) in HashMapGet() [all …]
|
D | contexts_trie.c | 35 HashNode *node = HashMapGet(root->handle, name, len); in GetGroupNode()
|
/base/startup/init/services/include/ |
D | init_hashmap.h | 32 } HashNode; typedef 37 typedef int (*HashNodeCompare)(const HashNode *node1, const HashNode *node2); 38 typedef int (*HashKeyCompare)(const HashNode *node1, const void *key); 39 typedef int (*HashNodeFunction)(const HashNode *node); 41 typedef void (*HashNodeOnFree)(const HashNode *node, void *context); 57 int32_t OH_HashMapAdd(HashMapHandle handle, HashNode *hashNode); 59 HashNode *OH_HashMapGet(HashMapHandle handle, const void *key); 60 HashNode *OH_HashMapFind(HashMapHandle handle, 62 void OH_HashMapTraverse(HashMapHandle handle, void (*hashNodeTraverse)(const HashNode *node, const …
|
/base/startup/init/services/utils/ |
D | init_hashmap.c | 26 HashNode *buckets[0]; 36 HashTab *tab = (HashTab *)calloc(1, sizeof(HashTab) + sizeof(HashNode*) * info->maxBucket); in OH_HashMapCreate() 49 static HashNode *GetHashNodeByNode(const HashTab *tab, const HashNode *root, const HashNode *new) in GetHashNodeByNode() 51 HashNode *node = (HashNode *)root; in GetHashNodeByNode() 62 static HashNode *GetHashNodeByKey(const HashTab *tab, const HashNode *root, const void *key, HashKe… in GetHashNodeByKey() 65 HashNode *node = (HashNode *)root; in GetHashNodeByKey() 76 int32_t OH_HashMapAdd(HashMapHandle handle, HashNode *node) in OH_HashMapAdd() 87 HashNode *tmp = GetHashNodeByNode(tab, tab->buckets[hashCode], node); in OH_HashMapAdd() 106 HashNode *node = tab->buckets[hashCode]; in OH_HashMapRemove() 107 HashNode *preNode = node; in OH_HashMapRemove() [all …]
|
/base/security/selinux_adapter/interfaces/policycoreutils/include/ |
D | selinux_map.h | 29 typedef struct HashNode { struct 30 struct HashNode *next; argument 31 } HashNode; typedef 34 HashNode *buckets[0]; 50 HashNode hashNode; 60 int32_t HashMapAdd(HashTab *handle, HashNode *hashNode); 61 HashNode *HashMapGet(HashTab *handle, const char *key, uint32_t len);
|
/base/startup/init/services/loopevent/loop/ |
D | le_loop.c | 20 static int TaskNodeCompare(const HashNode *node1, const HashNode *node2) in TaskNodeCompare() 27 static int TaskKeyCompare(const HashNode *node, const void *key) in TaskKeyCompare() 34 static int TaskGetNodeHasCode(const HashNode *node) in TaskGetNodeHasCode() 46 static void TaskNodeFree(const HashNode *node, void *context) in TaskNodeFree() 119 HashNode *node = OH_HashMapGet(loop->taskMap, &id); in GetTaskByFd()
|
/base/startup/init/test/unittest/init/ |
D | group_unittest.cpp | 32 HashNode node; 36 static int TestHashNodeCompare(const HashNode *node1, const HashNode *node2) in TestHashNodeCompare() 43 static int TestHashKeyCompare(const HashNode *node1, const void *key) in TestHashKeyCompare() 49 static int TestHashNodeFunction(const HashNode *node) in TestHashNodeFunction() 71 static void TestHashNodeFree(const HashNode *node, void *context) in TestHashNodeFree() 129 HashNode *node = OH_HashMapGet(handle, (const void *)str1); 154 OH_HashMapTraverse(handle, [](const HashNode *node, const void *context) {return;}, nullptr); in __anon9032da950202() 170 HashNode *node = OH_HashMapGet(handle, (const void *)act); 177 OH_HashMapTraverse(handle, [](const HashNode *node, const void *context) {return;}, nullptr); in __anon9032da950302()
|
/base/startup/init/services/init/ |
D | init_group_manager.c | 131 static int GroupNodeNodeCompare(const HashNode *node1, const HashNode *node2) in GroupNodeNodeCompare() 138 static int GroupNodeKeyCompare(const HashNode *node1, const void *key) in GroupNodeKeyCompare() 149 static int GroupNodeGetNodeHashCode(const HashNode *node) in GroupNodeGetNodeHashCode() 155 static void GroupNodeFree(const HashNode *node, void *context) in GroupNodeFree() 257 HashNode *node = OH_HashMapGet(g_initWorkspace.hashMap[type], name); in GetGroupNode() 303 HashNode *node = OH_HashMapGet(g_initWorkspace.hashMap[type], name); in CheckNodeValid()
|
/base/startup/init/services/init/include/ |
D | init_group_manager.h | 54 HashNode hashNode;
|
/base/startup/appspawn/standard/ |
D | appspawn_service.h | 62 HashNode node;
|
D | appspawn_service.c | 46 static int AppInfoHashNodeCompare(const HashNode *node1, const HashNode *node2) in AppInfoHashNodeCompare() 53 static int TestHashKeyCompare(const HashNode *node1, const void *key) in TestHashKeyCompare() 59 static int AppInfoHashNodeFunction(const HashNode *node) in AppInfoHashNodeFunction() 71 static void AppInfoHashNodeFree(const HashNode *node, void *context) in AppInfoHashNodeFree() 103 HashNode *node = OH_HashMapGet(g_appSpawnContent->appMap, (const void *)&pid); in GetAppInfo() 119 static void KillProcess(const HashNode *node, const void *context) in KillProcess()
|
/base/startup/init/services/loopevent/task/ |
D | le_task.h | 66 HashNode hashNode;
|
/base/startup/init/services/init/standard/ |
D | init_cmdexecutor.c | 148 static int CompareCmdId(const HashNode *node, const void *key) in CompareCmdId() 162 HashNode *node = OH_HashMapFind(GetGroupHashMap(NODE_TYPE_CMDS), in GetPluginCmdByIndex()
|
/base/startup/init/services/param/trigger/ |
D | trigger_manager.c | 294 HashNode *node = OH_HashMapGet(workSpace->hashMap, triggerName); in GetTriggerByName() 594 static int JobNodeNodeCompare(const HashNode *node1, const HashNode *node2) in JobNodeNodeCompare() 601 static int JobNodeKeyCompare(const HashNode *node1, const void *key) in JobNodeKeyCompare() 607 static int JobNodeGetNodeHasCode(const HashNode *node) in JobNodeGetNodeHasCode() 629 static void JobNodeFree(const HashNode *node, void *context) in JobNodeFree()
|
/base/security/selinux_adapter/test/unittest/parameter_static/ |
D | unit_test.cpp | 170 groupNode->hashNode.next = new (std::nothrow) HashNode;
|
/base/startup/init/services/param/include/ |
D | trigger_manager.h | 130 HashNode hashNode;
|
/base/startup/init/test/unittest/loopevent/ |
D | loopevent_unittest.cpp | 45 HashNode *buckets[0];
|