Lines Matching refs:hook
40 #define OS_MHOOK_IS_VALID(hook) ((uintptr_t)(hook) > OS_MHOOK_BOUNDARY) argument
42 #define OS_MHOOK_NOT_BOUNDARY(hook) ((uintptr_t)(hook) != OS_MHOOK_BOUNDARY) argument
44 OS_SEC_ALW_INLINE INLINE bool OsMhookBoundaryCheck(OsVoidFunc hook) in OsMhookBoundaryCheck() argument
46 return ((uintptr_t)hook <= OS_MHOOK_BOUNDARY); in OsMhookBoundaryCheck()
49 OS_SEC_ALW_INLINE INLINE bool OsMhookValidCheck(OsVoidFunc hook) in OsMhookValidCheck() argument
51 return (hook != OS_MHOOK_NODE_DEAD); in OsMhookValidCheck()
54 #define OS_MHOOK_ACTIVATE_PROC(hook, funcType, pfn, list) \ argument
56 OsVoidFunc *tmp_ = hook; \
67 OsVoidFunc *hook = g_hookCb[(hookType)].mulHook; \
69 if (hook != NULL) { \
70 OS_MHOOK_ACTIVATE_PROC(hook, funcType, pfn, (list)); \
157 extern U32 OsMhookAdd(U32 hookType, OsVoidFunc hook);
162 extern U32 OsMhookDel(U32 hookType, OsVoidFunc hook);
167 extern U32 OsHookAdd(enum HookType hookType, OsVoidFunc hook);
172 extern U32 OsHookDel(enum HookType hookType, OsVoidFunc hook);
177 extern U32 OsShookReg(U32 hookType, OsVoidFunc hook);