Home
last modified time | relevance | path

Searched refs:ListNode (Results 1 – 25 of 35) sorted by relevance

12

/base/startup/init/services/include/
Dlist.h71 typedef struct ListNode { struct
72 struct ListNode *next; argument
73 struct ListNode *prev; argument
74 } ListNode, ListHead; typedef
88 void OH_ListInit(struct ListNode *list);
97 void OH_ListAddTail(struct ListNode *list, struct ListNode *item);
106 void OH_ListRemove(struct ListNode *item);
118 typedef int (*ListCompareProc)(ListNode *node, ListNode *newNode);
131 void OH_ListAddWithOrder(struct ListNode *head, struct ListNode *item, ListCompareProc compareProc);
141 typedef int (*ListTraversalProc)(ListNode *node, void *data);
[all …]
/base/startup/init/services/utils/
Dlist.c29 void OH_ListInit(struct ListNode *node) in OH_ListInit()
45 void OH_ListAddTail(struct ListNode *head, struct ListNode *item) in OH_ListAddTail()
63 void OH_ListRemove(struct ListNode *item) in OH_ListRemove()
83 void OH_ListAddWithOrder(struct ListNode *head, struct ListNode *item, ListCompareProc compareProc) in OH_ListAddWithOrder()
85 ListNode *match; in OH_ListAddWithOrder()
117 ListNode *OH_ListFind(const ListNode *head, void *data, ListTraversalProc compareProc) in OH_ListFind()
119 ListNode *match; in OH_ListFind()
152 int OH_ListTraversal(ListNode *head, void *data, ListTraversalProc traversalProc, unsigned int flag… in OH_ListTraversal()
154 ListNode *match; in OH_ListTraversal()
155 ListNode *next; in OH_ListTraversal()
[all …]
/base/startup/init/interfaces/innerkits/sandbox/include/
Dsandbox.h38 struct ListNode node;
44 struct ListNode node;
48 ListNode pathMountsHead;
49 ListNode fileMountsHead;
50 ListNode linksHead;
/base/security/device_security_level/baselib/utils/include/
Dutils_list.h24 typedef ListHead ListNode; typedef
26 static inline void AddListNode(ListNode *item, ListNode *where) in AddListNode()
34 static inline void AddListNodeBefore(ListNode *item, ListNode *where) in AddListNodeBefore()
39 static inline void RemoveListNode(ListNode *item) in RemoveListNode()
/base/startup/init/ueventd/include/
Dueventd_read_cfg.h34 struct ListNode list;
35 struct ListNode paramNode;
44 struct ListNode list;
49 struct ListNode list;
/base/startup/init/interfaces/innerkits/hookmgr/
Dhookmgr.c32 ListNode node;
41 ListNode node;
43 ListNode hooks;
51 ListNode stages;
72 static int hookStageCompare(ListNode *node, void *data) in hookStageCompare()
81 static void hookStageDestroy(ListNode *node) in hookStageDestroy()
107 OH_ListAddTail(&(hookMgr->stages), (ListNode *)stageItem); in getHookStage()
111 static int hookItemCompare(ListNode *node, ListNode *newNode) in hookItemCompare()
127 static int hookItemCompareValue(ListNode *node, void *data) in hookItemCompareValue()
163 OH_ListAddWithOrder(&(hookStage->hooks), (ListNode *)hookItem, hookItemCompare); in addHookToStage()
[all …]
/base/startup/init/interfaces/innerkits/modulemgr/
Dmodulemgr.c39 ListNode modules;
79 ListNode node;
85 static void ModuleDestroy(ListNode *node) in ModuleDestroy()
130 static int ModuleCompare(ListNode *node, void *data) in ModuleCompare()
166 ModuleDestroy((ListNode *)module); in ModuleMgrInstall()
174 ModuleDestroy((ListNode *)module); in ModuleMgrInstall()
179 OH_ListAddTail(&(moduleMgr->modules), (ListNode *)module); in ModuleMgrInstall()
285 OH_ListRemove((ListNode *)module); in ModuleMgrUninstall()
287 ModuleDestroy((ListNode *)module); in ModuleMgrUninstall()
301 static int ModuleTraversalProc(ListNode *node, void *cookie) in ModuleTraversalProc()
[all …]
/base/startup/init/services/modules/bootevent/
Dbootevent.c51 ListNode node;
57 static ListNode bootEventList = {&bootEventList, &bootEventList};
59 static int BootEventParaListCompareProc(ListNode *node, void *data) in BootEventParaListCompareProc()
68 static int ParseBooteventCompareProc(ListNode *node, void *data) in ParseBooteventCompareProc()
80 ListNode *found = NULL; in AddServiceBootEvent()
109 OH_ListAddTail(&bootEventList, (ListNode *)&item->node); in AddServiceBootEvent()
115 ListNode *found = NULL; in AddInitBootEvent()
137 OH_ListAddTail(&bootEventList, (ListNode *)&item->node); in AddInitBootEvent()
143 static void BootEventDestroy(ListNode *node) in BootEventDestroy()
164 static int BootEventTraversal(ListNode *node, void *root) in BootEventTraversal()
[all …]
/base/startup/init/services/init/include/
Dinit_cmdexecutor.h29 ListNode cmdExecutor;
36 ListNode node;
/base/startup/init/interfaces/innerkits/init_module_engine/include/
Dinit_cmdexecutor.h29 ListNode cmdExecutor;
36 ListNode node;
/base/startup/init/interfaces/innerkits/control_fd/
Dcontrol_fd.h46 struct ListNode head;
58 struct ListNode item;
Dcontrol_fd_service.c165 static int ClientTraversalProc(ListNode *node, void *data) in ClientTraversalProc()
174 ListNode *node = OH_ListFind(&g_cmdService.head, (void *)&pid, ClientTraversalProc); in CmdServiceProcessDelClient()
/base/security/device_security_level/services/dslm/
Ddslm_device_list.c50 ListNode *node = NULL; in GetDeviceListSize()
67 ListNode *node = NULL; in GetDslmDeviceInfo()
141 ListNode *node = NULL; in ForEachDeviceDump()
Ddslm_core_defines.h39 ListNode linkNode;
Ddslm_fsm_process.c145 ListNode *node = NULL; in ProcessSendDeviceInfoCallback()
146 ListNode *temp = NULL; in ProcessSendDeviceInfoCallback()
352 ListNode *node = NULL; in RefreshNotifyList()
370 ListNode *node = NULL; in RefreshHistoryList()
371 ListNode *temp = NULL; in RefreshHistoryList()
/base/startup/init/interfaces/innerkits/sandbox/
Dsandbox.c126 static void FreeSandboxMountInfo(ListNode *list) in FreeSandboxMountInfo()
148 static void FreeSandboxLinkInfo(ListNode *list) in FreeSandboxLinkInfo()
170 static int CompareSandboxListForMountTarget(ListNode *list, void *data) in CompareSandboxListForMountTarget()
183 static void RemoveOldSandboxMountListNode(ListNode *head, const char *targetMount) in RemoveOldSandboxMountListNode()
188 ListNode *node = OH_ListFind(head, (void *)targetMount, CompareSandboxListForMountTarget); in RemoveOldSandboxMountListNode()
196 static int CompareSandboxListForLinkName(ListNode *list, void *data) in CompareSandboxListForLinkName()
209 static void RemoveOldSandboxLinkListNode(ListNode *head, const char *linkName) in RemoveOldSandboxLinkListNode()
214 ListNode *node = OH_ListFind(head, (void *)linkName, CompareSandboxListForLinkName); in RemoveOldSandboxLinkListNode()
472 static int MountSandboxNode(ListNode *list, void *data) in MountSandboxNode()
492 static int MountSandboxInfo(struct ListNode *head, const char *rootPath, SandboxTag tag) in MountSandboxInfo()
[all …]
/base/security/device_security_level/baselib/msglib/src/standard/
Dmessenger_device_session_manager.c57 ListNode link;
65 ListNode link;
207 ListNode *node = NULL; in MessengerOnSessionOpened()
208 ListNode *temp = NULL; in MessengerOnSessionOpened()
239 ListNode *node = NULL; in MessengerOnSessionClosed()
240 ListNode *temp = NULL; in MessengerOnSessionClosed()
339 ListNode *node = NULL; in DeInitDeviceSessionManager()
340 ListNode *temp = NULL; in DeInitDeviceSessionManager()
370 ListNode *node = NULL; in GetOpenedSessionId()
/base/startup/init/services/param/include/
Dtrigger_manager.h86 ListNode triggerList;
115 ListNode node; \
134 ListNode item;
140 ListNode item;
/base/startup/init/ueventd/
Dueventd_read_cfg.c61 struct ListNode g_devices = {
66 struct ListNode g_sysDevices = {
71 struct ListNode g_firmwares = {
347 struct ListNode *node = NULL; in GetDeviceUdevConfByDevNode()
365 struct ListNode *node = NULL; in GetDeviceNodePermissions()
386 struct ListNode *node = NULL; in ChangeSysAttributePermissions()
/base/security/device_security_level/services/include/
Ddslm_notify_node.h30 ListNode linkNode;
/base/startup/init/services/modules/init_hook/
Dinit_hook.h42 struct ListNode node;
Dinit_hook.c28 static int ServiceExtDataCompareProc(ListNode *node, void *data) in ServiceExtDataCompareProc()
39 ListNode *node = OH_ListFind(&service->extDataNode, (void *)&id, ServiceExtDataCompareProc); in GetServiceExtData_()
/base/startup/init/services/init/standard/
Dinit_cmdexecutor.c68 ListNode *node = cmd->cmdExecutor.next; in RemoveCmdExecutor()
98 ListNode *node = cmd->cmdExecutor.next; in PluginExecCmd_()
128 ListNode *node = cmd->cmdExecutor.next; in PluginExecCmd()
/base/startup/init/services/loopevent/task/
Dle_task.h44 ListNode node;
Dle_task.c98 ListNode *node = task->buffHead.next; in GetFirstBuffer()
118 ListNode *node = NULL; in GetNextBuffer()

12