1volmgt_feature_enabled(V3oVlOuLmMeGTM)anagement LibraryvFoulnmcgtti_ofnesature_enabled(3VOLMGT)
2
3
4

NAME

6       volmgt_feature_enabled  - check whether specific Volume Management fea‐
7       tures are enabled
8

SYNOPSIS

10       cc [ flag ... ] file ... -l volmgt [ library ... ]
11       #include <volmgt.h>
12
13
14
15       int volmgt_feature_enabled(char *feat_str);
16
17

DESCRIPTION

19       This function is obsolete. The management of  removable  media  by  the
20       Volume  Management  feature, including vold, has been replaced by soft‐
21       ware that supports the Hardware Abstraction Layer  (HAL).  Programmatic
22       support  for  HAL  is through the HAL APIs, which are documented on the
23       HAL web site. See hal(5). The return value of this  function  is  unde‐
24       fined.
25
26
27       The   volmgt_feature_enabled()  routine  checks whether specific volume
28       management features are enabled.  volmgt_feature_enabled()  checks  for
29       the volume management features passed in to it by the  feat_str parame‐
30       ter.
31
32
33       Currently,  the  only  supported  feature  string   that    volmgt_fea‐
34       ture_enabled() checks for is floppy-summit-interfaces. The  floppy-sum‐
35       mit-interfaces feature string checks for the presence of the  libvolmgt
36       routines volmgt_acquire() and volmgt_release().
37

RETURN VALUES

39       The return from this function is undefined.
40

EXAMPLES

42       Example 1 A sample of the volmgt_feature_enabled() function.
43
44
45       In  the following example,  volmgt_feature_enabled() checks whether the
46       floppy-summit-interfaces feature is enabled.
47
48
49         if (volmgt_feature_enabled("floppy-summit-interfaces")) {
50                 (void) printf("Media Sharing Routines ARE present\n");
51         } else {
52                 (void) printf("Media Sharing Routines are NOT present\n");
53         }
54
55

ATTRIBUTES

57       See attributes(5) for descriptions of the following attributes:
58
59
60
61
62       ┌─────────────────────────────┬─────────────────────────────┐
63       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
64       ├─────────────────────────────┼─────────────────────────────┤
65       │MT-Level                     │MT-Safe                      │
66       ├─────────────────────────────┼─────────────────────────────┤
67       │Interface Stability          │Obsolete                     │
68       └─────────────────────────────┴─────────────────────────────┘
69

SEE ALSO

71       volmgt_acquire(3VOLMGT), volmgt_release(3VOLMGT), attributes(5), hal(5)
72
73
74
75SunOS 5.11                        8 Mar 2007   volmgt_feature_enabled(3VOLMGT)
Impressum