'\" te .\" Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved. .TH HBA_LoadLibrary 3HBAAPI "1 Sep 2003" "SunOS 5.11" "Common Fibre Channel HBA Information Library Functions" .SH NAME HBA_LoadLibrary, HBA_FreeLibrary \- load and free the resources used by the HBA Common Library .SH SYNOPSIS .LP .nf cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-lHBAAPI\fR [ \fIlibrary\fR\&.\|.\|. ] #include \fBHBA_STATUS\fR \fBHBA_LoadLibrary\fR(\fBvoid\fR); .fi .LP .nf \fBHBA_STATUS\fR \fBHBA_FreeLibrary\fR(\fBvoid\fR); .fi .SH DESCRIPTION .sp .LP The \fBHBA_LoadLibrary()\fR function loads the Common Library, which in turn loads each VSL specified in the \fBhba.conf\fR(4) file. .sp .LP The \fBHBA_FreeLibrary()\fR function releases resources held by the Common Library and each loaded VSL. .SH RETURN VALUES .sp .LP Upon successful completion, \fBHBA_LoadLibrary()\fR and \fBHBA_FreeLibrary()\fR return \fBHBA_STATUS_OK\fR. Otherwise, an error value is returned. .SH ERRORS .sp .LP See \fBlibhbaapi\fR(3LIB) for general error status values. .SH EXAMPLES .LP \fBExample 1 \fRLoad the common library and each VSL. .sp .LP The following example loads the common library and each VSL. .sp .in +2 .nf if ((status = HBA_LoadLibrary()) != HBA_STATUS_OK) { fprintf(stderr, "HBA_LoadLibrary failed: %d\e\en", status); return; } .fi .in -2 .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Interface StabilityCommitted _ T{ Standard: FC-HBA Version 4 (API version 2) T} _ MT-LevelSafe _ StandardFC-MI 1.92 (API version 1) .TE .SH SEE ALSO .sp .LP \fBlibhbaapi\fR(3LIB), \fBhba.conf\fR(4), \fBattributes\fR(5) .sp .LP T11 FC-MI Specification