ldr_entry(3) — Subroutines
OSF
NAME
ldr_entry − Returns the entry point for a loaded module
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <sys/types.h>
#include <loader.h>
ldr_entry_pt_t ldr_entry(
ldr_module_t mod_id);
PARAMETERS
mod_idIdentifies the loaded module. The module ID is returned when the module is first loaded.
DESCRIPTION
The ldr_entry() function returns the entry point for the specified loaded module.
RETURN VALUES
Upon successful completion, the ldr_entry() function returns the entry point. If the operation fails, the function returns null and errno is set to indicate the error.
ERRORS
If the ldr_entry() function fails, errno may be set to the following value:
[EINVAL]The specified module ID has no entry point or is not valid.
RELATED INFORMATION
Functions: load(3), ldr_xentry(3)