1lgrp_cookie_stale(3LGRP)Locality Group Library Functionslgrp_cookie_stale(3LGRP)
2
3
4
6 lgrp_cookie_stale - determine whether snapshot of lgroup hierarchy is
7 stale
8
10 cc [ flag ... ] file... -llgrp [ library ... ]
11 #include <sys/lgrp_user.h>
12
13 int lgrp_cookie_stale(lgrp_cookie_t cookie);
14
15
17 The lgrp_cookie_stale() function takes a cookie representing the snap‐
18 shot of the lgroup hierarchy obtained from lgrp_init(3LGRP) and returns
19 whether it is stale. The snapshot can become out-of-date for a number
20 of reasons depending on its view. If the snapshot was taken with
21 LGRP_VIEW_OS, changes in the lgroup hierarchy from dynamic reconfigura‐
22 tion, CPU on/offline, or other conditions can cause the snapshot to
23 become out-of-date. A snapshot taken with LGRP_VIEW_CALLER can be
24 affected by the caller's processor set binding and changes in its pro‐
25 cessor set itself, as well as changes in the lgroup hierarchy.
26
27
28 If the snapshot needs to be updated, lgrp_fini(3LGRP) should be called
29 with the old cookie and lgrp_init() should be called to obtain a new
30 snapshot.
31
33 Upon successful completion, lgrp_cookie_stale() returns whether the
34 cookie is stale. Otherwise, it returns −1 and sets errno to indicate
35 the error.
36
38 The lgrp_cookie_stale() function will fail if:
39
40 EINVAL The cookie is not valid.
41
42
44 See attributes(5) for descriptions of the following attributes:
45
46
47
48
49 ┌─────────────────────────────┬─────────────────────────────┐
50 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
51 ├─────────────────────────────┼─────────────────────────────┤
52 │Interface Stability │Evolving │
53 ├─────────────────────────────┼─────────────────────────────┤
54 │MT-Level │MT-Safe │
55 └─────────────────────────────┴─────────────────────────────┘
56
58 lgrp_init(3LGRP), lgrp_fini(3LGRP), lgrp_view(3LGRP), liblgrp(3LIB),
59 attributes(5)
60
61
62
63SunOS 5.11 16 Apr 2003 lgrp_cookie_stale(3LGRP)