/base/startup/init/interfaces/innerkits/include/ |
D | hookmgr.h | 79 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/ |
D | hookmgr_unittest.cpp | 37 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/ |
D | init_hook.c | 88 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/ |
D | hookmgr.c | 239 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/ |
D | hookmgr_moduletest.cpp | 50 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/ |
D | hookmgradd_fuzzer.cpp | 20 static int TestHook(const HOOK_INFO *hookInfo, void *executionContext) in TestHook() argument
|
/base/startup/init/test/fuzztest/hookmgrdel_fuzzer/ |
D | hookmgrdel_fuzzer.cpp | 20 static int TestHook(const HOOK_INFO *hookInfo, void *executionContext) in TestHook() argument
|
/base/startup/init/services/init/standard/ |
D | init.c | 301 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/ |
D | reboot_static.c | 29 static int RebootHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in RebootHookWrapper() argument 31 RebootHookCtx *ctx = (RebootHookCtx *)executionContext; in RebootHookWrapper()
|
/base/startup/init/services/init/ |
D | init_common_service.c | 102 static int ServiceHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in ServiceHookWrapper() argument 104 SERVICE_INFO_CTX *serviceContext = (SERVICE_INFO_CTX *)executionContext; in ServiceHookWrapper()
|
D | init_service_manager.c | 889 static int ServiceParseHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in ServiceParseHookWrapper() argument 891 SERVICE_PARSE_CTX *serviceParseContext = (SERVICE_PARSE_CTX *)executionContext; in ServiceParseHookWrapper()
|