rinit(D2I) rinit(D2I)
NAME
rinit - target driver's routine to claim and initialize
devices
SYNOPSIS
#include <sys/sdi.h>
#include <sys/ddi.h>
void prefixrinit(void);
Arguments
None.
DESCRIPTION
The rinit routine is an entry point into the target driver.
It is responsible for claiming and initializing any devices.
It is called by sdi_register and usually by the target
driver's start routine. Normally, rinit calls sdi_doconfig to
get a list of owner structures, one for each device claimed by
this target driver.
For each owner structure the rinit function should initialize
the maj.b_maj, maj.c_maj, maj.minors_per, maj.first_minor
fields in the owner structure. It should also create and
initialize any structures necessary for that device for the
target driver's internal use. It should be noted that the
rinit routine is called every time that an HBA is inserted or
removed, and that the resultant list of owner structures
returned by sdi_doconfig may have devices removed and
inserted.
Return Values
None.
Level
Base.
REFERENCES
owner(D4I), sdi_doconfig(D3I), sdi_register(D3I), start(D2I)
NOTICES
Applicability
sdi: 1, 2
Copyright 1994 Novell, Inc. Page 1