Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

lgrp_view(3lgrp) [opensolaris man page]

lgrp_view(3LGRP)					 Locality Group Library Functions					  lgrp_view(3LGRP)

NAME
lgrp_view - get view of lgroup hierarchy SYNOPSIS
cc [ flag ... ] file... -llgrp [ library ... ] #include <sys/lgrp_user.h> lgrp_view_t lgrp_view(lgrp_cookie_t cookie); DESCRIPTION
The lgrp_view() function takes a cookie representing the snapshot of the lgroup hierarchy obtained from lgrp_init(3LGRP) and returns the snapshot's view of the lgroup hierarchy. If the given view is LGRP_VIEW_CALLER, the snapshot contains only the resources that are available to the caller (such as those with respect to processor sets). When the view is LGRP_VIEW_OS, the snapshot contains what is available to the operating system. RETURN VALUES
Upon succesful completion, lgrp_view() returns the view for the snapshot of the lgroup hierarchy represented by the given cookie. Other- wise, -1 is returned and errno is set to indicate the error. ERRORS
The lgrp_view() function will fail if: EINVAL The cookie is not valid. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
lgrp_cookie_stale(3LGRP), lgrp_fini(3LGRP), lgrp_init(3LGRP), liblgrp(3LIB), attributes(5) SunOS 5.11 16 Apr 2003 lgrp_view(3LGRP)

Check Out this Related Man Page

lgrp_cookie_stale(3LGRP)				 Locality Group Library Functions				  lgrp_cookie_stale(3LGRP)

NAME
lgrp_cookie_stale - determine whether snapshot of lgroup hierarchy is stale SYNOPSIS
cc [ flag ... ] file... -llgrp [ library ... ] #include <sys/lgrp_user.h> int lgrp_cookie_stale(lgrp_cookie_t cookie); DESCRIPTION
The lgrp_cookie_stale() function takes a cookie representing the snapshot of the lgroup hierarchy obtained from lgrp_init(3LGRP) and returns whether it is stale. The snapshot can become out-of-date for a number of reasons depending on its view. If the snapshot was taken with LGRP_VIEW_OS, changes in the lgroup hierarchy from dynamic reconfiguration, CPU on/offline, or other conditions can cause the snapshot to become out-of-date. A snapshot taken with LGRP_VIEW_CALLER can be affected by the caller's processor set binding and changes in its processor set itself, as well as changes in the lgroup hierarchy. If the snapshot needs to be updated, lgrp_fini(3LGRP) should be called with the old cookie and lgrp_init() should be called to obtain a new snapshot. RETURN VALUES
Upon successful completion, lgrp_cookie_stale() returns whether the cookie is stale. Otherwise, it returns -1 and sets errno to indicate the error. ERRORS
The lgrp_cookie_stale() function will fail if: EINVAL The cookie is not valid. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
lgrp_init(3LGRP), lgrp_fini(3LGRP), lgrp_view(3LGRP), liblgrp(3LIB), attributes(5) SunOS 5.10 16 Apr 2003 lgrp_cookie_stale(3LGRP)
Man Page

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Taking a snapshot / view of a server

I'm about to run an application patch on a server and before I do I would like to take a snapshot of the OS. Then after running the install I can take another one for a comparison. The idea being that if the patch changes any files outside of the /app directory then I will know from comparing... (2 Replies)
Discussion started by: Yao
2 Replies

2. Shell Programming and Scripting

String Manipulation

Hi, Suppose I have the following text in a file. ORA-00942: table or view does not exist ORA-01555: snapshot too old: rollback segment number string with name "string" too small Is there any way I can list all the text that starts only with 'ORA-'? Or there any grep command that can... (7 Replies)
Discussion started by: kakashi_jet
7 Replies

3. IP Networking

how do you get to know if the write operation was succesful.

how do you get to know if the write operation for writing to a socket was succesful was succesful. (3 Replies)
Discussion started by: arjunjag
3 Replies

4. SuSE

VMDB Failure" followed by "Unable to open snapshot file"

keep getting an error when I try to revert to a snapshot: "VMDB Failure" followed by "Unable to open snapshot file" Im using vmware server 1.0.4, host OS is windows xp and guest OS is SLES. Is there anything I can do to recover the snapshot or am I in trouble!?!?! (0 Replies)
Discussion started by: s_linux
0 Replies

5. UNIX and Linux Applications

Check out Multiple Hijacked Files in Clearcase

How can we checkout multiple hijacked files in Clearcase? I need to find hijacked files recursively in a snapshot view & check those out. I tried to use the command: cleartool co -nc `cleartool ls -recurse | grep "hijacked" | sed s/\@\@.*// | xargs` but it gives me an error: cleartool:... (2 Replies)
Discussion started by: anjalim6
2 Replies