Home
last modified time | relevance | path

Searched refs:hooks (Results 1 – 3 of 3) sorted by relevance

/base/hiviewdfx/hiview_lite/
Dhiview_util.c138 void HIVIEW_InitHook(HIVIEW_Hooks *hooks) in HIVIEW_InitHook() argument
140 if (hooks == NULL) { in HIVIEW_InitHook()
152 hiview_open = (hooks->open_fn) == NULL ? open : hooks->open_fn; in HIVIEW_InitHook()
153 hiview_close = (hooks->close_fn) == NULL ? close : hooks->close_fn;; in HIVIEW_InitHook()
154 hiview_read = (hooks->read_fn) == NULL ? read : hooks->read_fn;; in HIVIEW_InitHook()
155 hiview_write = (hooks->write_fn) == NULL ? write : hooks->write_fn;; in HIVIEW_InitHook()
156 hiview_lseek = (hooks->lseek_fn) == NULL ? lseek : hooks->lseek_fn;; in HIVIEW_InitHook()
157 hiview_fsync = (hooks->fsync_fn) == NULL ? fsync : hooks->fsync_fn;; in HIVIEW_InitHook()
158 hiview_unlink = (hooks->unlink_fn) == NULL ? unlink : hooks->unlink_fn;; in HIVIEW_InitHook()
159 hiview_rename = (hooks->rename_fn) == NULL ? rename : hooks->rename_fn;; in HIVIEW_InitHook()
Dhiview_util.h90 void HIVIEW_InitHook(HIVIEW_Hooks *hooks);
/base/startup/init/interfaces/innerkits/hookmgr/
Dhookmgr.c43 ListNode hooks; member
88 OH_ListRemoveAll(&(stage->hooks), NULL); in hookStageDestroy()
106 OH_ListInit(&(stageItem->hooks)); in getHookStage()
150 …hookItem = (HOOK_ITEM *)OH_ListFind(&(hookStage->hooks), (void *)(&compareVal), hookItemCompareVal… in addHookToStage()
163 OH_ListAddWithOrder(&(hookStage->hooks), (ListNode *)hookItem, hookItemCompare); in addHookToStage()
227 OH_ListTraversal(&(stageItem->hooks), hook, hookTraversalDelProc, 0); in HookMgrDel()
286 return OH_ListTraversal(&(stageItem->hooks), (void *)(&args), hookExecutionProc, flags); in HookMgrExecute()
342 OH_ListTraversal(&(stageItem->hooks), data, hookItemTraversal, 0); in hookStageTraversal()
378 return OH_ListGetCnt(&(stageItem->hooks)); in HookMgrGetHooksCnt()