2 .\" Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH VOLMGT_FEATURE_ENABLED 3VOLMGT "Mar 8, 2007"
8 volmgt_feature_enabled \- check whether specific Volume Management features are
13 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-l\fR volmgt [ \fIlibrary\fR ... ]
18 \fBint\fR \fBvolmgt_feature_enabled\fR(\fBchar *\fR\fIfeat_str\fR);
24 This function is obsolete. The management of removable media by the Volume
25 Management feature, including \fBvold\fR, has been replaced by software that
26 supports the Hardware Abstraction Layer (HAL). Programmatic support for HAL is
27 through the HAL APIs, which are documented on the HAL web site. See
28 \fBhal\fR(5). The return value of this function is undefined.
31 The \fBvolmgt_feature_enabled()\fR routine checks whether specific volume
32 management features are enabled. \fBvolmgt_feature_enabled()\fR checks for the
33 volume management features passed in to it by the \fIfeat_str\fR parameter.
36 Currently, the only supported feature string that
37 \fBvolmgt_feature_enabled()\fR checks for is \fBfloppy-summit-interfaces\fR.
38 The \fBfloppy-summit-interfaces\fR feature string checks for the presence of
39 the \fBlibvolmgt\fR routines \fBvolmgt_acquire()\fR and \fBvolmgt_release()\fR.
43 The return from this function is undefined.
46 \fBExample 1 \fRA sample of the \fBvolmgt_feature_enabled()\fR function.
49 In the following example, \fBvolmgt_feature_enabled()\fR checks whether the
50 \fBfloppy-summit-interfaces\fR feature is enabled.
55 if (volmgt_feature_enabled("floppy-summit-interfaces")) {
56 (void) printf("Media Sharing Routines ARE present\en");
58 (void) printf("Media Sharing Routines are NOT present\en");
66 See \fBattributes\fR(5) for descriptions of the following attributes:
74 ATTRIBUTE TYPE ATTRIBUTE VALUE
78 Interface Stability Obsolete
84 \fBvolmgt_acquire\fR(3VOLMGT), \fBvolmgt_release\fR(3VOLMGT),
85 \fBattributes\fR(5), \fBhal\fR(5)