/base/startup/init/interfaces/innerkits/init_module_engine/include/ |
H A D | bootstage.h | 59 __attribute__((always_inline)) inline int InitAddGlobalInitHook(int prio, OhosHook hook) in InitAddGlobalInitHook() argument 61 return HookMgrAdd(GetBootStageHookMgr(), INIT_GLOBAL_INIT, prio, hook); in InitAddGlobalInitHook() 64 __attribute__((always_inline)) inline int InitAddPreParamServiceHook(int prio, OhosHook hook) in InitAddPreParamServiceHook() argument 66 return HookMgrAdd(GetBootStageHookMgr(), INIT_PRE_PARAM_SERVICE, prio, hook); in InitAddPreParamServiceHook() 69 __attribute__((always_inline)) inline int InitAddPreParamLoadHook(int prio, OhosHook hook) in InitAddPreParamLoadHook() argument 71 return HookMgrAdd(GetBootStageHookMgr(), INIT_PRE_PARAM_LOAD, prio, hook); in InitAddPreParamLoadHook() 86 * @param hookInfo hook information 97 __attribute__((always_inline)) inline int InitAddPreCfgLoadHook(int prio, OhosHook hook) in InitAddPreCfgLoadHook() argument 99 return HookMgrAdd(GetBootStageHookMgr(), INIT_PRE_CFG_LOAD, prio, hook); in InitAddPreCfgLoadHook() 102 __attribute__((always_inline)) inline int InitAddPostCfgLoadHook(int prio, OhosHook hook) in InitAddPostCfgLoadHook() argument 107 InitAddPostPersistParamLoadHook(int prio, OhosHook hook) InitAddPostPersistParamLoadHook() argument [all...] |
H A D | init_running_hooks.h | 26 * @brief Running hook stage definition for init 40 * If set skipParamSet in the hook, parameter service will not save 46 * @brief set parameter hook function prototype 54 * @brief Register a hook for setting parameters 56 * @param hook parameter setting hook 57 * in the hook, we can match the parameters with special patterns to do extra controls. 61 int ParamSetHookAdd(ParamSetHook hook);
|
/base/startup/init/interfaces/innerkits/hookmgr/ |
H A D | hookmgr.c | 47 * HookManager is consist of different hook stages 123 OhosHook hook; member 134 if (hookItem->info.hook == compareVal->hook && hookItem->info.hookCookie == compareVal->hookCookie) { in hookItemCompareValue() 140 // Add hook to stage list with prio ordered 141 static int addHookToStage(HOOK_STAGE *hookStage, int prio, OhosHook hook, void *hookCookie) in addHookToStage() argument 148 compareVal.hook = hook; in addHookToStage() 158 hookItem->info.hook = hook; in addHookToStage() 185 HookMgrAdd(HOOK_MGR *hookMgr, int stage, int prio, OhosHook hook) HookMgrAdd() argument 214 HookMgrDel(HOOK_MGR *hookMgr, int stage, OhosHook hook) HookMgrDel() argument [all...] |
/base/startup/appspawn/modules/modulemgr/ |
H A D | appspawn_modulemgr.c | 156 APPSPAWN_LOGV("Execute hook [%{public}d] result %{public}d", stage, ret); in ServerStageHookExecute() 160 int AddServerStageHook(AppSpawnHookStage stage, int prio, ServerStageHook hook) in AddServerStageHook() argument 162 APPSPAWN_CHECK(hook != NULL, return APPSPAWN_ARG_INVALID, "Invalid hook"); in AddServerStageHook() 168 info.hook = ServerStageHookRun; in AddServerStageHook() 169 info.hookCookie = (void *)hook; in AddServerStageHook() 200 APPSPAWN_LOGV("Execute hook [%{public}d] for app: %{public}s", stage, GetProcessName((AppSpawningCtx *)client)); in AppSpawnHookExecute() 213 APPSPAWN_LOGE("Execute hook [%{public}d] result %{public}d", stage, ret); in AppSpawnHookExecute() 243 int AddAppSpawnHook(AppSpawnHookStage stage, int prio, AppSpawnHook hook) in AddAppSpawnHook() argument 245 APPSPAWN_CHECK(hook ! in AddAppSpawnHook() 279 AddProcessMgrHook(AppSpawnHookStage stage, int prio, ProcessChangeHook hook) AddProcessMgrHook() argument [all...] |
/base/startup/init/interfaces/innerkits/include/ |
H A D | hookmgr.h | 75 * @param hookInfo hook information 76 * @param executionContext input arguments for running the hook execution context 82 int stage; /* hook stage */ 83 int prio; /* hook priority */ 84 OhosHook hook; /* hook function */ member 85 void *hookCookie; /* hook function cookie, for current hook only */ 89 * @brief Add a hook function 93 * @param stage hook stag [all...] |
/base/startup/appspawn/modules/module_engine/include/ |
H A D | appspawn_hook.h | 117 * @param hook 预加载处理函数 120 int AddServerStageHook(AppSpawnHookStage stage, int prio, ServerStageHook hook); 126 * @param hook 预加载处理函数 129 __attribute__((always_inline)) inline int AddPreloadHook(int prio, ServerStageHook hook) in AddPreloadHook() argument 131 return AddServerStageHook(STAGE_SERVER_PRELOAD, prio, hook); in AddPreloadHook() 139 * @param hook 应用孵化阶段处理函数 142 int AddAppSpawnHook(AppSpawnHookStage stage, int prio, AppSpawnHook hook); 149 * @param hook 业务进程变化处理函数 152 int AddProcessMgrHook(AppSpawnHookStage stage, int prio, ProcessChangeHook hook);
|
/base/hiviewdfx/hisysevent/interfaces/rust/innerkits/src/ |
H A D | macros.rs | 32 fn hook() {} in hook() functions 36 let name = type_name_of(hook); in type_name_of() 37 let off_set: usize = 6; // ::hook
|
/base/location/frameworks/location_common/common/source/ |
H A D | hook_utils.cpp | 33 LocationErrCode HookUtils::RegisterHook(LocationProcessStage stage, int prio, OhosHook hook) in RegisterHook() argument 35 auto ret = HookMgrAdd(GetLocationExtHookMgr(), static_cast<int>(stage), prio, hook); in RegisterHook() 44 void HookUtils::UnregisterHook(LocationProcessStage stage, OhosHook hook) in UnregisterHook() argument 46 HookMgrDel(GetLocationExtHookMgr(), static_cast<int>(stage), hook); in UnregisterHook() local
|
/base/location/interfaces/inner_api/include/ |
H A D | hook_utils.h | 88 static LocationErrCode RegisterHook(LocationProcessStage stage, int prio, OhosHook hook); 89 static void UnregisterHook(LocationProcessStage stage, OhosHook hook);
|
/base/startup/init/services/modules/reboot/ |
H A D | reboot_static.c | 37 int InitAddRebootHook(InitRebootHook hook) in InitAddRebootHook() argument 42 info.hook = RebootHookWrapper; in InitAddRebootHook() 43 info.hookCookie = (void *)hook; in InitAddRebootHook()
|
/base/startup/init/services/modules/init_hook/ |
H A D | init_hook.c | 96 int InitAddJobParseHook(JobParseHook hook)
in InitAddJobParseHook() argument 101 info.hook = JobParseHookWrapper;
in InitAddJobParseHook() 102 info.hookCookie = (void *)hook;
in InitAddJobParseHook() 193 // clear hook
in BootCompleteCmd()
|
/base/startup/init/services/init/ |
H A D | init_common_service.c | 115 int InitAddServiceHook(ServiceHook hook, int hookState)
in InitAddServiceHook() argument 121 info.hook = ServiceHookWrapper;
in InitAddServiceHook() 122 info.hookCookie = (void *)hook;
in InitAddServiceHook() 136 int InitServiceRestartHook(ServiceRestartHook hook, int hookState)
in InitServiceRestartHook() argument 142 info.hook = ServiceRestartHookWrapper;
in InitServiceRestartHook() 143 info.hookCookie = (void *)hook;
in InitServiceRestartHook()
|
H A D | init_service_manager.c | 999 int InitAddServiceParseHook(ServiceParseHook hook) in InitAddServiceParseHook() argument 1005 info.hook = ServiceParseHookWrapper; in InitAddServiceParseHook() 1006 info.hookCookie = (void *)hook; in InitAddServiceParseHook()
|
/base/startup/init/test/moduletest/ |
H A D | hookmgr_moduletest.cpp | 91 info.hook = OhosTestHookMultiThreadAnother; in HWTEST_F()
|