Searched refs:hookType (Results 1 - 5 of 5) sorted by relevance
/kernel/uniproton/src/om/include/ |
H A D | prt_hook_external.h | 65 #define OS_MHOOK_ACTIVATE(hookType, funcType, list) \ 67 OsVoidFunc *hook = g_hookCb[(hookType)].mulHook; \ 74 #define OS_SHOOK_ACTIVATE(hookType, funcType, list) \ 76 funcType pfn = (funcType)g_hookCb[(hookType)].sigHook; \ 81 #define OS_MHOOK_ACTIVATE_PARA0(hookType) OS_MHOOK_ACTIVATE((hookType), OsFunPara0, pfn()) 82 #define OS_MHOOK_ACTIVATE_PARA1(hookType, arg0) OS_MHOOK_ACTIVATE((hookType), OsFunPara1, pfn((uintptr_t)(arg0))) 83 #define OS_MHOOK_ACTIVATE_PARA2(hookType, arg0, arg1) OS_MHOOK_ACTIVATE((hookType), \ [all...] |
/kernel/uniproton/src/om/hook/ |
H A D | prt_hook_init.c | 46 OS_SEC_L4_TEXT void OsMhookReserve(U32 hookType, U32 incCnt) in OsMhookReserve() argument 48 g_hookCb[hookType].num += incCnt; in OsMhookReserve() 106 OS_SEC_L4_TEXT U32 OsMhookAdd(U32 hookType, OsVoidFunc hook) in OsMhookAdd() argument 114 mHook = g_hookCb[hookType].mulHook; in OsMhookAdd() 153 if ((hookCnt == 0) && (g_hookChgHandler[hookType] != NULL)) { in OsMhookAdd() 154 ret = g_hookChgHandler[hookType](hookType, HOOK_ADD_FIRST); in OsMhookAdd() 169 OS_SEC_L4_TEXT U32 OsMhookDel(U32 hookType, OsVoidFunc hook) in OsMhookDel() argument 177 mHook = g_hookCb[hookType].mulHook; in OsMhookDel() 204 if ((hookCnt == 1) && (g_hookChgHandler[hookType] ! in OsMhookDel() 229 OsHookAdd(enum HookType hookType, OsVoidFunc hook) OsHookAdd() argument 245 OsHookDel(enum HookType hookType, OsVoidFunc hook) OsHookDel() argument 261 OsShookReg(U32 hookType, OsVoidFunc hook) OsShookReg() argument [all...] |
H A D | prt_hook_internal.h | 27 #define OS_IS_SHOOK_TYPE(hookType) ((hookType) >= OS_SHOOK_TYPE_START && (hookType) < (U32)OS_HOOK_TYPE_TOTAL)
|
/kernel/liteos_a/kernel/include/ |
H A D | los_hook.h | 92 * @param hookType [IN] Register the type of the hook. 100 #define LOS_HookReg(hookType, hookFn) hookType##_RegHook(hookFn) 114 * @param hookType [IN] Deregister the type of the hook. 122 #define LOS_HookUnReg(hookType, hookFn) hookType##_UnRegHook(hookFn) 127 #define OsHookCall(hookType, ...) hookType##_CallHook(__VA_ARGS__) 130 #define LOS_HookReg(hookType, hookFn) 131 #define LOS_HookUnReg(hookType, hookF [all...] |
/kernel/liteos_m/utils/ |
H A D | los_hook.h | 88 * @param hookType [IN] Register the type of the hook. 96 #define LOS_HookReg(hookType, hookFn) hookType##_RegHook(hookFn) 110 * @param hookType [IN] Deregister the type of the hook. 118 #define LOS_HookUnReg(hookType, hookFn) hookType##_UnRegHook(hookFn) 123 #define OsHookCall(hookType, ...) hookType##_CallHook(__VA_ARGS__) 126 #define LOS_HookReg(hookType, hookFn) 127 #define LOS_HookUnReg(hookType, hookF [all...] |
Completed in 2 milliseconds