1pset_list(2) System Calls pset_list(2)
2
3
4
6 pset_list - get list of processor sets
7
9 #include <sys/pset.h>
10
11 int pset_list(psetid_t *psetlist, uint_t *numpsets);
12
13
15 The pset_list() function returns a list of processor sets in the sys‐
16 tem.
17
18
19 If numpsets is non-null, then on successful completion the number of
20 processor sets in the system will be stored in the location pointed to
21 by numpsets.
22
23
24 If numpsets and psetlist are both non-null, then psetlist points to a
25 buffer where a list of processor sets in the system is to be stored,
26 and numpsets points to the maximum number of processor set IDs the buf‐
27 fer can hold. On successful completion, the list of processor sets up
28 to the maximum buffer size is stored in the buffer pointed to by
29 psetlist.
30
32 Upon successful completion, 0 is returned. Otherwise, -1 is returned
33 and errno is set to indicate the error.
34
36 The pset_list() function will fail if:
37
38 EFAULT The location pointed to by psetlist or numpsets was not null
39 and not writable by the user.
40
41
43 If the caller is in a non-global zone and the pools facility is active,
44 pset_list() returns only the processor set of the pool to which the
45 zone is bound.
46
48 See attributes(5) for descriptions of the following attributes:
49
50
51
52
53 ┌─────────────────────────────┬─────────────────────────────┐
54 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
55 ├─────────────────────────────┼─────────────────────────────┤
56 │Interface Stability │Stable │
57 ├─────────────────────────────┼─────────────────────────────┤
58 │MT-Level │Async-Signal-Safe │
59 └─────────────────────────────┴─────────────────────────────┘
60
62 pooladm(1M), psrset(1M), zoneadm(1M), processor_info(2), pset_bind(2),
63 pset_create(2), pset_info(2), pset_getloadavg(3C), attributes(5)
64
65
66
67SunOS 5.11 28 Jun 2004 pset_list(2)