Home
last modified time | relevance | path

Searched refs:hook (Results 1 – 25 of 73) sorted by relevance

123

/ohos5.0/base/startup/init/interfaces/innerkits/init_module_engine/include/
H A Dbootstage.h59 __attribute__((always_inline)) inline int InitAddGlobalInitHook(int prio, OhosHook hook) in InitAddGlobalInitHook() argument
61 return HookMgrAdd(GetBootStageHookMgr(), INIT_GLOBAL_INIT, prio, hook); in InitAddGlobalInitHook()
66 return HookMgrAdd(GetBootStageHookMgr(), INIT_PRE_PARAM_SERVICE, prio, hook); in InitAddPreParamServiceHook()
71 return HookMgrAdd(GetBootStageHookMgr(), INIT_PRE_PARAM_LOAD, prio, hook); in InitAddPreParamLoadHook()
99 return HookMgrAdd(GetBootStageHookMgr(), INIT_PRE_CFG_LOAD, prio, hook); in InitAddPreCfgLoadHook()
104 return HookMgrAdd(GetBootStageHookMgr(), INIT_POST_CFG_LOAD, prio, hook); in InitAddPostCfgLoadHook()
201 int InitAddServiceParseHook(ServiceParseHook hook);
224 int InitAddRebootHook(InitRebootHook hook);
233 int InitAddJobParseHook(JobParseHook hook);
243 int InitAddServiceHook(ServiceHook hook, int hookState);
[all …]
H A Dinit_running_hooks.h61 int ParamSetHookAdd(ParamSetHook hook);
/ohos5.0/base/startup/init/interfaces/innerkits/hookmgr/
H A Dhookmgr.c123 OhosHook hook; member
134 …if (hookItem->info.hook == compareVal->hook && hookItem->info.hookCookie == compareVal->hookCookie… in hookItemCompareValue()
148 compareVal.hook = hook; in addHookToStage()
158 hookItem->info.hook = hook; in addHookToStage()
171 BEGET_CHECK(hookInfo->hook != NULL, return -1); in HookMgrAddEx()
185 int HookMgrAdd(HOOK_MGR *hookMgr, int stage, int prio, OhosHook hook) in HookMgrAdd() argument
190 info.hook = hook; in HookMgrAdd()
200 BEGET_CHECK((void *)hookItem->info.hook == cookie, return 0); in hookTraversalDelProc()
214 void HookMgrDel(HOOK_MGR *hookMgr, int stage, OhosHook hook) in HookMgrDel() argument
226 if (hook != NULL) { in HookMgrDel()
[all …]
/ohos5.0/docs/en/application-dev/napi/
H A Duse-napi-about-cleanuphook.md22 | napi_remove_env_cleanup_hook | Removes an environment cleanup hook function.|
24 | napi_remove_async_cleanup_hook | Removes an async cleanup hook function.|
63 // Create an external buffer and add the environment cleanup hook function.
75 // Use static variables as hook function parameters.
78 // Add a cleanup hook function for releasing resources when the environment exits.
90 // Remove the environment cleanup hook function immediately.
91 // Generally, use this API when the resource associated with the hook must be released.
141 …d an async cleanup hook function, which will be executed asynchronously when the environment exits…
162 // Delete the async work object and remove the hook function.
166 // Remove the hook function from the environment when it is no longer required.
[all …]
/ohos5.0/base/startup/appspawn/modules/modulemgr/
H A Dappspawn_modulemgr.c160 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()
243 int AddAppSpawnHook(AppSpawnHookStage stage, int prio, AppSpawnHook hook) in AddAppSpawnHook() argument
245 APPSPAWN_CHECK(hook != NULL, return APPSPAWN_ARG_INVALID, "Invalid hook"); in AddAppSpawnHook()
251 info.hook = AppSpawnHookRun; in AddAppSpawnHook()
252 info.hookCookie = (void *)hook; in AddAppSpawnHook()
281 APPSPAWN_CHECK(hook != NULL, return APPSPAWN_ARG_INVALID, "Invalid hook"); in AddProcessMgrHook()
287 info.hook = ProcessMgrHookRun; in AddProcessMgrHook()
[all …]
/ohos5.0/docs/zh-cn/device-dev/kernel/
H A Dkernel-standard-hck.md12 本文主要对基于源生hook方式的HCK框架进行使用指导说明,并对使用规范进行说明。
45 在kernel-x.x/include/linux/hck/lite_hck_xxx.h中用以下宏定义hook接口:
71 在自研hook模块中定义插桩函数以及注册hook函数
95 在其他内核模块中,插入hook函数,完成接口调用。
H A Dkernel-small-debug-trace-other-lastwords.md16 VOID LOS_ExcInfoRegHook(UINT32 startAddr, UINT32 space, CHAR *buf, log_read_write_fn hook);
/ohos5.0/base/startup/appspawn/modules/module_engine/include/
H A Dappspawn_hook.h120 int AddServerStageHook(AppSpawnHookStage stage, int prio, ServerStageHook 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()
142 int AddAppSpawnHook(AppSpawnHookStage stage, int prio, AppSpawnHook hook);
152 int AddProcessMgrHook(AppSpawnHookStage stage, int prio, ProcessChangeHook hook);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_resource_manager.cpp34 void RSResourceManager::SetUploadTextureFunction(TextureUpload hook) { in SetUploadTextureFunction() argument
35 if (hook != nullptr) { in SetUploadTextureFunction()
36 hookFunction_ = hook; in SetUploadTextureFunction()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/pipeline/
H A Drs_render_node_gc.h66 void SetMainTask(gcTask hook) { in SetMainTask() argument
67 mainTask_ = hook; in SetMainTask()
78 void SetRenderTask(gcTask hook) { in SetRenderTask() argument
79 renderTask_ = hook; in SetRenderTask()
/ohos5.0/base/startup/init/interfaces/innerkits/include/
H A Dhookmgr.h84 OhosHook hook; /* hook function */ member
98 int HookMgrAdd(HOOK_MGR *hookMgr, int stage, int prio, OhosHook hook);
120 void HookMgrDel(HOOK_MGR *hookMgr, int stage, OhosHook hook);
/ohos5.0/base/location/frameworks/location_common/common/source/
H A Dhook_utils.cpp33 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()
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/model/audio/
H A DKconfig49 support hook interrupt mode.
50 support hook adc mode.
65 support hook interrupt mode.
66 support hook adc mode.
/ohos5.0/docs/en/device-dev/kernel/
H A Dkernel-standard-hck.md12 This document describes how to implement the HCK based on the native hook mode.
45 Define the hook interface in **kernel-x.x/include/linux/hck/lite_hck_xxx.h** by using the following…
56 // Declare the hook interface. The declaration macro contains the EXPORT interface, and you do not …
71 Define the instrumentation function and register the hook functions in the hook module.
95 Add the hook function in other kernel modules.
H A Dkernel-small-debug-perf.md29hook for the sampling data buffer| **LOS_PerfNotifyHookReg**: registers the hook to be called when…
35 The buffer has limited space. You can register a hook to provide a buffer overflow notification or …
49 If the buffer sampled by perf involves caches across CPUs, you can register a hook for flushing the…
/ohos5.0/base/startup/init/services/modules/init_hook/
H A Dinit_hook.c96 int InitAddJobParseHook(JobParseHook hook) in InitAddJobParseHook() argument
101 info.hook = JobParseHookWrapper; in InitAddJobParseHook()
102 info.hookCookie = (void *)hook; in InitAddJobParseHook()
/ohos5.0/base/startup/init/services/modules/reboot/
H A Dreboot_static.c37 int InitAddRebootHook(InitRebootHook hook) in InitAddRebootHook() argument
42 info.hook = RebootHookWrapper; in InitAddRebootHook()
43 info.hookCookie = (void *)hook; in InitAddRebootHook()
/ohos5.0/base/location/interfaces/inner_api/include/
H A Dhook_utils.h91 static LocationErrCode RegisterHook(LocationProcessStage stage, int prio, OhosHook hook);
92 static void UnregisterHook(LocationProcessStage stage, OhosHook hook);
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/base/
H A Dproduct_adapter.cpp329 void ProductAdapter::RegExtraPresetModulesHook(ExtraPresetModulesHook hook) in RegExtraPresetModulesHook() argument
331 g_extraPresetModulesHooks.loadingHandler = hook.loadingHandler; in RegExtraPresetModulesHook()
332 g_extraPresetModulesHooks.unloadingHandler = hook.unloadingHandler; in RegExtraPresetModulesHook()
/ohos5.0/base/hiviewdfx/hisysevent/interfaces/rust/innerkits/src/
H A Dmacros.rs32 fn hook() {}
36 let name = type_name_of(hook);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/
H A Drs_resource_manager.h44 void SetUploadTextureFunction(TextureUpload hook);
/ohos5.0/base/startup/init/services/init/
H A Dinit_common_service.c115 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()
/ohos5.0/docs/en/device-dev/driver/
H A Ddriver-platform-pwm-develop.md25 …nd managing PWM devices. The core layer interacts with the adaptation layer through hook functions.
26 - Adaptation layer: instantiates the hook functions to implement specific features.
40hook functions are defined in **//drivers/hdf_core/framework/support/platform/include/pwm/pwm_core…
208 struct PwmMethod g_pwmOps = { // Instantiate the hook functions in pwm_hi35xx.c.
H A Ddriver-platform-watchdog-develop.md25 …naging watchdog devices. The core layer interacts with the adaptation layer through hook functions.
26 - Adaptation layer: instantiates the hook functions to implement specific features.
40hook functions are defined in **//drivers/hdf_core/framework/support/platform/include/watchdog/wat…
185 static struct WatchdogMethod g_method = { // Instantiate the hook functions.
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/composer/vsync/include/
H A Dvsync_distributor.h66 inline void SetGCNotifyTask(GCNotifyTask hook) in SetGCNotifyTask() argument
68 gcNotifyTask_ = hook; in SetGCNotifyTask()

123