Searched refs:hookType (Results 1 – 5 of 5) sorted by relevance
/kernel/uniproton/src/om/include/ |
D | prt_hook_external.h | 65 #define OS_MHOOK_ACTIVATE(hookType, funcType, list) \ argument 67 OsVoidFunc *hook = g_hookCb[(hookType)].mulHook; \ 74 #define OS_SHOOK_ACTIVATE(hookType, funcType, list) \ argument 76 funcType pfn = (funcType)g_hookCb[(hookType)].sigHook; \ 81 #define OS_MHOOK_ACTIVATE_PARA0(hookType) OS_MHOOK_ACTIVATE((hookType), OsFunPara0, pfn()) argument 82 #define OS_MHOOK_ACTIVATE_PARA1(hookType, arg0) OS_MHOOK_ACTIVATE((hookType), OsFunPara1, pfn((uint… argument 83 #define OS_MHOOK_ACTIVATE_PARA2(hookType, arg0, arg1) OS_MHOOK_ACTIVATE((hookType), \ argument 85 #define OS_MHOOK_ACTIVATE_PARA3(hookType, arg0, arg1, arg2) OS_MHOOK_ACTIVATE((hookType), \ argument 87 #define OS_MHOOK_ACTIVATE_PARA4(hookType, arg0, arg1, arg2, arg3) \ argument 88 OS_MHOOK_ACTIVATE((hookType), \ [all …]
|
/kernel/uniproton/src/om/hook/ |
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] != NULL)) { in OsMhookDel() 205 ret = g_hookChgHandler[hookType](hookType, HOOK_DEL_LAST); in OsMhookDel() [all …]
|
D | prt_hook_internal.h | 27 #define OS_IS_SHOOK_TYPE(hookType) ((hookType) >= OS_SHOOK_TYPE_START && (hookType) < (U32)OS_HOOK_… argument
|
/kernel/liteos_m/utils/ |
D | los_hook.h | 96 #define LOS_HookReg(hookType, hookFn) hookType##_RegHook(hookFn) argument 118 #define LOS_HookUnReg(hookType, hookFn) hookType##_UnRegHook(hookFn) argument 123 #define OsHookCall(hookType, ...) hookType##_CallHook(__VA_ARGS__) argument 126 #define LOS_HookReg(hookType, hookFn) 127 #define LOS_HookUnReg(hookType, hookFn) 128 #define OsHookCall(hookType, ...)
|
/kernel/liteos_a/kernel/include/ |
D | los_hook.h | 100 #define LOS_HookReg(hookType, hookFn) hookType##_RegHook(hookFn) argument 122 #define LOS_HookUnReg(hookType, hookFn) hookType##_UnRegHook(hookFn) argument 127 #define OsHookCall(hookType, ...) hookType##_CallHook(__VA_ARGS__) argument 130 #define LOS_HookReg(hookType, hookFn) 131 #define LOS_HookUnReg(hookType, hookFn) 132 #define OsHookCall(hookType, ...)
|