(C) 1998 AROS - The Amiga Research OS


NAME
#include <exec/resident.h>
#include <dos/bptr.h>
#include <proto/exec.h>

APTR InitResident (resident , segList)

LOCATION
In SysBase at offset 17

SYNOPSIS
struct Resident * resident
BPTR segList

FUNCTION
Test the resident structure and build the library or device with the information given therein. The Init() vector is called and the base address returned.

The Init() vector is called with the following registers: D0 = 0 A0 = segList A6 = ExecBase

INPUTS
resident
Pointer to resident structure.
segList
Pointer to loaded module, 0 for resident modules.

RESULT
A pointer returned from the Init() vector. Usually this is the base of the library/device/resource. NULL for failure.

EXAMPLE

SEE ALSO

NOTES
AUTOINIT modules are automatically added to the correct exec list. Non AUTOINIT modules have to do all the work themselves.

BUGS

INTERNALS

HISTORY