1volmgt_running(3VOLMGT)Volume Management Library Functionvsolmgt_running(3VOLMGT)
2
3
4

NAME

6       volmgt_running - return whether or not volume management is running
7

SYNOPSIS

9       cc [ flag... ] file... -lvolmgt [ library... ]
10       #include <volmgt.h>
11
12       int volmgt_running(void);
13
14

DESCRIPTION

16       This  function  is  obsolete.  The management of removable media by the
17       Volume Management feature, including vold, has been replaced  by  soft‐
18       ware  that  supports the Hardware Abstraction Layer (HAL). Programmatic
19       support for HAL is through the HAL APIs, which are  documented  on  the
20       HAL web site. See hal(5).
21
22
23       volmgt_running() tells whether or not Volume Management is running.
24

RETURN VALUES

26       volmgt_running()  always  returns  0  indicating  Volume Management (as
27       implemented by vold) is not running.
28

ERRORS

30       volmgt_running() will fail, returning 0, if a  stat(2)  or  open(2)  of
31       /dev/volctl fails, or if any of the following is true:
32
33       ENXIO    Volume Management is not running.
34
35
36       EINTR    An interrupt signal was detected while checking to see if Vol‐
37                ume Management was running.
38
39

EXAMPLES

41       Example 1 Using volmgt_running()
42
43
44       To see if Volume Management is running:
45
46
47         if (volmgt_running() != 0) {
48                 (void) printf("Volume Management is running\n");
49         } else {
50                 (void) printf("Volume Management is NOT running\n");
51         }
52
53

ATTRIBUTES

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

SEE ALSO

69       open(2),   stat(2),    volmgt_check(3VOLMGT),    volmgt_inuse(3VOLMGT),
70       attributes(5), hal(5)
71

NOTES

73       Volume  Management  must  be  running for many of the Volume Management
74       library routines to work.
75
76
77
78SunOS 5.11                        8 Mar 2007           volmgt_running(3VOLMGT)
Impressum