1lgrp_root(3LGRP)       Locality Group Library Functions       lgrp_root(3LGRP)
2
3
4

NAME

6       lgrp_root - return root lgroup ID
7

SYNOPSIS

9       cc [ flag ... ] file... -llgrp [ library ... ]
10       #include <sys/lgrp_user.h>
11
12       lgrp_id_t lgrp_root(lgrp_cookie_t cookie);
13
14

DESCRIPTION

16       The lgrp_root() function returns the root lgroup ID.
17

RETURN VALUES

19       Upon  successful  completion,  lgrp_root() returns the lgroup ID of the
20       root lgroup. Otherwise, it returns −1 and sets errno  to  indicate  the
21       error.
22

ERRORS

24       The lgrp_root() function will fail if:
25
26       EINVAL    The cookie is not valid.
27
28

ATTRIBUTES

30       See attributes(5) for descriptions of the following attributes:
31
32
33
34
35       ┌─────────────────────────────┬─────────────────────────────┐
36       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
37       ├─────────────────────────────┼─────────────────────────────┤
38       │Interface Stability          │Committed                    │
39       ├─────────────────────────────┼─────────────────────────────┤
40       │MT-Level                     │MT-Safe                      │
41       └─────────────────────────────┴─────────────────────────────┘
42

SEE ALSO

44       lgrp_children(3LGRP),  lgrp_init(3LGRP),  lgrp_nlgrps(3LGRP), lgrp_par‐
45       ents(3LGRP), liblgrp(3LIB), attributes(5)
46
47
48
49SunOS 5.11                        31 Jan 2008                 lgrp_root(3LGRP)
Impressum