OSDynLoad_AddNotifyCallback

Syntax

#include <cafe/os/OSDynLoad.h>

int OSDynLoad_AddNotifyCallback(OSDynLoad_pfNotifyFunc  aFunc, 
                                void *pUserArg);

Parameters

aFunc Notification callback function to invoke when a module is loaded or unloaded.
pUserArg Generic argument to pass to the notification callback when it is invoked. The OS does not analyze this value.

Return Values

Returns an OSDYNLOAD_ERR_xxx error code (see OSDynLoad.h).

Description

This function allows you to add a generic callback that is invoked when a module is loaded or unloaded.

This is a mechanism primarily used by the debugger in debug builds to determine when to load or unload symbols. However, it can be used by other mechanisms for other purposes or for profile tracking.

Do Not Call From

None.

See Also

OSDynLoad_Acquire
OSDynLoad_DelNotifyCallback
OSDynLoad_FindExport
OSDynLoad_FindTag
OSDynLoad_GetAllocator
OSDynLoad_GetModuleName
OSDynLoad_IsModuleLoaded
OSDynLoad_NotifyHdr
OSDynLoad_Release
OSDynLoad_SetAllocator

Revision History

2014/08/29 Moved OSDynLoad_NotifyHdr to its own page.
2013/11/01 Added OSDynLoad_IsModuleLoaded.
2013/05/08 Automated cleanup pass.
2011/03/11 Initial version.


CONFIDENTIAL