1lgrp_nlgrps(3LGRP) Locality Group Library Functions lgrp_nlgrps(3LGRP)
2
3
4
6 lgrp_nlgrps - get number of lgroups
7
9 cc [ flag ... ] file... -llgrp [ library ... ]
10 #include <sys/lgrp_user.h>
11
12 int lgrp_nlgrps(lgrp_cookie_t cookie);
13
14
16 The lgrp_nlgrps() function takes a cookie representing a snapshot of
17 the lgroup hierarchy obtained from lgrp_init(3LGRP). It returns the
18 number of lgroups in the hierarchy where the number is always at least
19 one.
20
22 Upon successful completion, lgrp_nlgrps() returns the number of lgroups
23 in the system. Otherwise, it returns −1 and sets errno to indicate the
24 error.
25
27 The lgrp_nlgrps() function will fail if:
28
29 EINVAL The cookie is not valid.
30
31
33 See attributes(5) for descriptions of the following attributes:
34
35
36
37
38 ┌─────────────────────────────┬─────────────────────────────┐
39 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
40 ├─────────────────────────────┼─────────────────────────────┤
41 │Interface Stability │Evolving │
42 ├─────────────────────────────┼─────────────────────────────┤
43 │MT-Level │MT-Safe │
44 └─────────────────────────────┴─────────────────────────────┘
45
47 lgrp_children(3LGRP), lgrp_init(3LGRP), lgrp_parents(3LGRP),
48 liblgrp(3LIB), attributes(5)
49
50
51
52SunOS 5.11 16 Apr 2003 lgrp_nlgrps(3LGRP)