Home
last modified time | relevance | path

Searched refs:hookInfo (Results 1 - 19 of 19) sorted by relevance

/base/startup/appspawn/modules/modulemgr/
H A Dappspawn_modulemgr.c117 static int ServerStageHookRun(const HOOK_INFO *hookInfo, void *executionContext) in ServerStageHookRun() argument
120 ServerStageHook realHook = (ServerStageHook)hookInfo->hookCookie; in ServerStageHookRun()
124 static void PreHookExec(const HOOK_INFO *hookInfo, void *executionContext) in PreHookExec() argument
129 APPSPAWN_LOGI("Hook stage: %{public}d prio: %{public}d start", hookInfo->stage, hookInfo->prio); in PreHookExec()
132 static void PostHookExec(const HOOK_INFO *hookInfo, void *executionContext, int executionRetVal) in PostHookExec() argument
139 hookInfo->stage, hookInfo->prio, diff, executionRetVal); in PostHookExec()
174 static int AppSpawnHookRun(const HOOK_INFO *hookInfo, void *executionContext) in AppSpawnHookRun() argument
177 AppSpawnHook realHook = (AppSpawnHook)hookInfo in AppSpawnHookRun()
181 PreAppSpawnHookExec(const HOOK_INFO *hookInfo, void *executionContext) PreAppSpawnHookExec() argument
188 PostAppSpawnHookExec(const HOOK_INFO *hookInfo, void *executionContext, int executionRetVal) PostAppSpawnHookExec() argument
272 ProcessMgrHookRun(const HOOK_INFO *hookInfo, void *executionContext) ProcessMgrHookRun() argument
[all...]
/base/startup/init/interfaces/innerkits/include/
H A Dhookmgr.h75 * @param hookInfo hook information
79 typedef int (*OhosHook)(const HOOK_INFO *hookInfo, void *executionContext);
105 * @param hookInfo full hook information
108 int HookMgrAddEx(HOOK_MGR *hookMgr, const HOOK_INFO *hookInfo);
125 * @param hookInfo HOOK_INFO for the each hook.
129 typedef void (*OhosHookPreExecution)(const HOOK_INFO *hookInfo, void *executionContext);
134 * @param hookInfo HOOK_INFO for the each hook.
139 typedef void (*OhosHookPostExecution)(const HOOK_INFO *hookInfo, void *executionContext, int executionRetVal);
189 * @param hookInfo HOOK_INFO for traversing each hook.
192 typedef void (*OhosHookTraversal)(const HOOK_INFO *hookInfo, voi
[all...]
/base/startup/init/test/moduletest/
H A Dhookmgr_moduletest.cpp50 static int OhosTestHookMultiThread(const HOOK_INFO *hookInfo, void *executionContext) in OhosTestHookMultiThread() argument
57 static int OhosTestHookMultiThreadAnother(const HOOK_INFO *hookInfo, void *executionContext) in OhosTestHookMultiThreadAnother() argument
64 static void OhosHookPrint(const HOOK_INFO *hookInfo, void *traversalCookie) in OhosHookPrint() argument
66 printf("\tstage[%02d] prio[%02d].\n", hookInfo->stage, hookInfo->prio); in OhosHookPrint()
/base/startup/init/interfaces/innerkits/hookmgr/
H A Dhookmgr.c167 int HookMgrAddEx(HOOK_MGR *hookMgr, const HOOK_INFO *hookInfo) in HookMgrAddEx() argument
170 BEGET_CHECK(hookInfo != NULL, return -1); in HookMgrAddEx()
171 BEGET_CHECK(hookInfo->hook != NULL, return -1); in HookMgrAddEx()
178 stageItem = getHookStage(hookMgr, hookInfo->stage, true); in HookMgrAddEx()
182 return addHookToStage(stageItem, hookInfo->prio, hookInfo->hook, hookInfo->hookCookie); in HookMgrAddEx()
/base/startup/init/services/modules/init_hook/
H A Dinit_hook.c88 static int JobParseHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in JobParseHookWrapper() argument
91 JobParseHook realHook = (JobParseHook)hookInfo->hookCookie; in JobParseHookWrapper()
138 static int ParamSetInitCmdHook(const HOOK_INFO *hookInfo, void *cookie) in ParamSetInitCmdHook() argument
187 static int BootCompleteCmd(const HOOK_INFO *hookInfo, void *executionContext) in BootCompleteCmd() argument
190 UNUSED(hookInfo); in BootCompleteCmd()
/base/startup/init/services/modules/udid/
H A Dudid_static.c19 static int UDidCalc(const HOOK_INFO *hookInfo, void *cookie) in UDidCalc() argument
/base/startup/init/test/unittest/innerkits/
H A Dhookmgr_unittest.cpp53 static int OhosTestHookRetOK(const HOOK_INFO *hookInfo, void *executionContext) in OhosTestHookRetOK() argument
58 static int OhosTestHookRetOKEx(const HOOK_INFO *hookInfo, void *executionContext) in OhosTestHookRetOKEx() argument
63 static int OhosTestHookRetOKEx2(const HOOK_INFO *hookInfo, void *executionContext) in OhosTestHookRetOKEx2() argument
68 static void OhosHookPrint(const HOOK_INFO *hookInfo, void *traversalCookie) in OhosHookPrint() argument
70 printf("\tstage[%02d] prio[%02d].\n", hookInfo->stage, hookInfo->prio); in OhosHookPrint()
/base/startup/init/test/fuzztest/hookmgrdel_fuzzer/
H A Dhookmgrdel_fuzzer.cpp20 static int TestHook(const HOOK_INFO *hookInfo, void *executionContext) in TestHook() argument
/base/startup/init/test/fuzztest/hookmgradd_fuzzer/
H A Dhookmgradd_fuzzer.cpp20 static int TestHook(const HOOK_INFO *hookInfo, void *executionContext) in TestHook() argument
/base/startup/init/test/fuzztest/hookmgrtraversal_fuzzer/
H A Dhookmgrtraversal_fuzzer.cpp20 static void HookTraversal(const HOOK_INFO *hookInfo, void *traversalCookie) in HookTraversal() argument
/base/startup/init/services/modules/selinux/
H A Dselinux_static.c21 static int SelinuxHook(const HOOK_INFO *hookInfo, void *cookie) in SelinuxHook() argument
/base/startup/init/services/init/standard/
H A Dinit.c183 INIT_STATIC void InitPreHook(const HOOK_INFO *hookInfo, void *executionContext) in InitPreHook() argument
189 INIT_STATIC void InitPostHook(const HOOK_INFO *hookInfo, void *executionContext, int executionRetVal) in InitPostHook() argument
195 hookInfo->stage, hookInfo->prio, diff, executionRetVal); in InitPostHook()
/base/startup/init/services/modules/reboot/
H A Dreboot_static.c29 static int RebootHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in RebootHookWrapper() argument
32 InitRebootHook realHook = (InitRebootHook)hookInfo->hookCookie; in RebootHookWrapper()
/base/location/test/location_common/source/
H A Dlocation_common_test.cpp719 static int OhosHookTest01(const HOOK_INFO *hookInfo, void *executionContext) in OhosHookTest01() argument
722 EXPECT_NE(hookInfo, nullptr); in OhosHookTest01()
723 EXPECT_EQ(hookInfo->prio, 0); in OhosHookTest01()
728 static int OhosHookTest02(const HOOK_INFO *hookInfo, void *executionContext) in OhosHookTest02() argument
731 EXPECT_NE(hookInfo, nullptr); in OhosHookTest02()
732 EXPECT_EQ(hookInfo->prio, 1); in OhosHookTest02()
742 static int OhosHookTest03(const HOOK_INFO *hookInfo, void *executionContext) in OhosHookTest03() argument
745 EXPECT_NE(hookInfo, nullptr); in OhosHookTest03()
746 EXPECT_EQ(hookInfo->prio, 0); in OhosHookTest03()
758 static int OhosHookTest04(const HOOK_INFO *hookInfo, voi argument
[all...]
/base/startup/init/interfaces/innerkits/init_module_engine/include/
H A Dbootstage.h86 * @param hookInfo hook information
90 typedef int (*ParamLoadFilter)(const HOOK_INFO *hookInfo, PARAM_LOAD_FILTER_CTX *filter);
/base/startup/init/services/init/
H A Dinit_common_service.c106 static int ServiceHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in ServiceHookWrapper() argument
109 ServiceHook realHook = (ServiceHook)hookInfo->hookCookie; in ServiceHookWrapper()
127 static int ServiceRestartHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in ServiceRestartHookWrapper() argument
130 ServiceRestartHook realHook = (ServiceRestartHook)hookInfo->hookCookie; in ServiceRestartHookWrapper()
H A Dinit_service_manager.c990 static int ServiceParseHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in ServiceParseHookWrapper() argument
993 ServiceParseHook realHook = (ServiceParseHook)hookInfo->hookCookie; in ServiceParseHookWrapper()
/base/startup/init/test/unittest/param/
H A Dparam_stub.cpp486 static int TestHook(const HOOK_INFO *hookInfo, void *cookie) in TestHook() argument
/base/startup/init/services/modules/bootevent/
H A Dbootevent.c478 static int ParamSetBootEventHook(const HOOK_INFO *hookInfo, void *cookie) in ParamSetBootEventHook() argument

Completed in 13 milliseconds