| M O D _ C O D E F I N D ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English AMIGA - MOD_#?
----------------------------------------------------------------------------
NAME
mod_codefind() - Locates Resident(ROMTAG) in freshly
relocated binary.
SYNOPSIS
rt = mod_codefind(me);
struct Resident *mod_codefind(struct MemEntry *);
FUNCTION
This function allows to locate the Resident structure
that every residentable object should carry.
INPUTS
me - Memory entry pointer which references the code
area.
RETURNS
Returns the Resident pointer or NULL if code lacks it.
BASES
None.
NOTES
Having this information is cruicial in the process of
module creation, and possibly allows you to link this
code to the OS chains at this point, but for the sake
of consistency please copy the contents of 'rt' to
the 'struct mod_ktl_head' and then NULL it out!
SEE ALSO
mod_codereloc(), mod_codefree(),
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |