1pset_info(2) System Calls pset_info(2)
2
3
4
6 pset_info - get information about a processor set
7
9 #include <sys/pset.h>
10
11 int pset_info(psetid_t pset, int *type, uint_t *numcpus,
12 processorid_t *cpulist);
13
14
16 The pset_info() function returns information on the processor set pset.
17
18
19 If type is non-null, then on successful completion the type of the pro‐
20 cessor set will be stored in the location pointed to by type. The only
21 type supported for active processor sets is PS_PRIVATE.
22
23
24 If numcpus is non-null, then on successful completion the number of
25 processors in the processor set will be stored in the location pointed
26 to by numcpus.
27
28
29 If numcpus and cpulist are both non-null, then cpulist points to a buf‐
30 fer where a list of processors assigned to the processor set is to be
31 stored, and numcpus points to the maximum number of processor IDs the
32 buffer can hold. On successful completion, the list of processors up to
33 the maximum buffer size is stored in the buffer pointed to by cpulist.
34
35
36 If pset is PS_NONE, the list of processors not assigned to any proces‐
37 sor set will be stored in the buffer pointed to by cpulist, and the
38 number of such processors will be stored in the location pointed to by
39 numcpus. The location pointed to by type will be set to PS_NONE.
40
41
42 If pset is PS_MYID, the processor list and number of processors
43 returned will be those of the processor set to which the caller is
44 bound. If the caller is not bound to a processor set, the result will
45 be equivalent to setting pset to PS_NONE.
46
48 Upon successful completion, 0 is returned. Otherwise, −1 is returned
49 and errno is set to indicate the error.
50
52 The pset_info() function will fail if:
53
54 EFAULT The location pointed to by type, numcpus, or cpulist was not
55 null and not writable by the user.
56
57
58 EINVAL An invalid processor set ID was specified.
59
60 The caller is in a non-global zone, the pools facility is
61 active, and the processor is not a member of the zone's
62 pool's processor set.
63
64
66 See attributes(5) for descriptions of the following attributes:
67
68
69
70
71 ┌─────────────────────────────┬─────────────────────────────┐
72 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
73 ├─────────────────────────────┼─────────────────────────────┤
74 │Interface Stability │Stable │
75 ├─────────────────────────────┼─────────────────────────────┤
76 │MT-Level │Async-Signal-Safe │
77 └─────────────────────────────┴─────────────────────────────┘
78
80 pooladm(1M), psrinfo(1M), psrset(1M), zoneadm(1M), processor_info(2),
81 pset_assign(2), pset_bind(2), pset_create(2), pset_destroy(2),
82 pset_getloadavg(3C), attributes(5)
83
85 The processor set of type PS_SYSTEM is no longer supported.
86
87
88
89SunOS 5.11 28 Jun 2004 pset_info(2)