Kenwood HP 9000 Personal Computer User Manual


 
250 Chapter 6
Shared Library Management Routines
The dlopen Shared Library Management Routines
int ident_parm,
uint64_t load_map_parm);
Parameters
Return Values
If successful, dlmodinfo returns a handle for the shared library as
defined by the return value from dlopen(). NULL is returned
otherwise. The return values are type-converted to unsigned long
Description
dlmodinfo is one of a family of routines that give the user direct access
to the dynamic linking facilities. The dlmodinfo routine retrieves
information about a load module from a given address value. dlmodinfo
Parameter Description
ip_value An address. The instruction pointer value of the requested library.
desc A buffer of memory allocated by the user program. The dynamic
loader fills this in with module information.
desc_size Size in bytes of the desc buffer.
read_tgm_mem A pointer to a function used by dlmodinfo to retrieve needed
information.
If the value is NULL, the dynamic loader uses its own internal data
structures to find the correct load module and ignore the
ident_parm and load_map_parm parameters.
buffer A buffer supplied by dlmodinfo to read into.
ptr The virtual memory address to read from.
bufsiz Tthe size of buffer in bytes.
ident The value of the ident_parm parameter to dlmodinfo.
ident_parm Only used to pass the fourth parameter to read_tgt_mem.
load_map_parm Only used when calling through read_tgt_mem. Contains the
starting address of the load map.