Home
last modified time | relevance | path

Searched refs:executionContext (Results 1 – 11 of 11) sorted by relevance

/base/startup/init/interfaces/innerkits/include/
Dhookmgr.h79 typedef int (*OhosHook)(const HOOK_INFO *hookInfo, void *executionContext);
129 typedef void (*OhosHookPreExecution)(const HOOK_INFO *hookInfo, void *executionContext);
139 typedef void (*OhosHookPostExecution)(const HOOK_INFO *hookInfo, void *executionContext, int execut…
167 int HookMgrExecute(HOOK_MGR *hookMgr, int stage, void *executionContext, const HOOK_EXEC_OPTIONS *e…
/base/startup/init/test/unittest/innerkits/
Dhookmgr_unittest.cpp37 static int OhosHookTestCommon(void *executionContext, int result) in OhosHookTestCommon() argument
41 if (executionContext == nullptr) { in OhosHookTestCommon()
45 ctx = (struct HookExecCtx *)executionContext; in OhosHookTestCommon()
53 static int OhosTestHookRetOK(const HOOK_INFO *hookInfo, void *executionContext) in OhosTestHookRetOK() argument
55 return OhosHookTestCommon(executionContext, 1); in OhosTestHookRetOK()
58 static int OhosTestHookRetOKEx(const HOOK_INFO *hookInfo, void *executionContext) in OhosTestHookRetOKEx() argument
60 return OhosHookTestCommon(executionContext, 2); in OhosTestHookRetOKEx()
63 static int OhosTestHookRetOKEx2(const HOOK_INFO *hookInfo, void *executionContext) in OhosTestHookRetOKEx2() argument
65 return OhosHookTestCommon(executionContext, 3); in OhosTestHookRetOKEx2()
/base/startup/init/services/modules/init_hook/
Dinit_hook.c88 static int ServiceClearHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in ServiceClearHookWrapper() argument
90 SERVICE_INFO_CTX *ctx = (SERVICE_INFO_CTX *)executionContext; in ServiceClearHookWrapper()
106 static int JobParseHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in JobParseHookWrapper() argument
108 JOB_PARSE_CTX *jobParseContext = (JOB_PARSE_CTX *)executionContext; in JobParseHookWrapper()
227 static int BootCompleteCmd(const HOOK_INFO *hookInfo, void *executionContext) in BootCompleteCmd() argument
231 UNUSED(executionContext); in BootCompleteCmd()
/base/startup/init/interfaces/innerkits/hookmgr/
Dhookmgr.c239 void *executionContext; member
250 args->options->preHook(&hookItem->info, args->executionContext); in hookExecutionProc()
252 ret = hookItem->info.hook(&hookItem->info, args->executionContext); in hookExecutionProc()
254 args->options->postHook(&hookItem->info, args->executionContext, ret); in hookExecutionProc()
263 int HookMgrExecute(HOOK_MGR *hookMgr, int stage, void *executionContext, const HOOK_EXEC_OPTIONS *o… in HookMgrExecute() argument
282 args.executionContext = executionContext; in HookMgrExecute()
/base/startup/init/test/moduletest/
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
/base/startup/init/test/fuzztest/hookmgradd_fuzzer/
Dhookmgradd_fuzzer.cpp20 static int TestHook(const HOOK_INFO *hookInfo, void *executionContext) in TestHook() argument
/base/startup/init/test/fuzztest/hookmgrdel_fuzzer/
Dhookmgrdel_fuzzer.cpp20 static int TestHook(const HOOK_INFO *hookInfo, void *executionContext) in TestHook() argument
/base/startup/init/services/init/standard/
Dinit.c301 INIT_STATIC void InitPreHook(const HOOK_INFO *hookInfo, void *executionContext) in InitPreHook() argument
303 INIT_TIMING_STAT *stat = (INIT_TIMING_STAT *)executionContext; in InitPreHook()
307 INIT_STATIC void InitPostHook(const HOOK_INFO *hookInfo, void *executionContext, int executionRetVa… in InitPostHook() argument
309 INIT_TIMING_STAT *stat = (INIT_TIMING_STAT *)executionContext; in InitPostHook()
/base/startup/init/services/modules/reboot/
Dreboot_static.c29 static int RebootHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in RebootHookWrapper() argument
31 RebootHookCtx *ctx = (RebootHookCtx *)executionContext; in RebootHookWrapper()
/base/startup/init/services/init/
Dinit_common_service.c102 static int ServiceHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in ServiceHookWrapper() argument
104 SERVICE_INFO_CTX *serviceContext = (SERVICE_INFO_CTX *)executionContext; in ServiceHookWrapper()
Dinit_service_manager.c889 static int ServiceParseHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in ServiceParseHookWrapper() argument
891 SERVICE_PARSE_CTX *serviceParseContext = (SERVICE_PARSE_CTX *)executionContext; in ServiceParseHookWrapper()