Using lgrp_view
()
The lgrp_view
()
function determines the view of the given
lgroup hierarchy snapshot.
#include <sys/lgrp_user.h> lgrp_view_t lgrp_view(lgrp_cookie_t cookie);
The lgrp_view
()
function takes a cookie that represents a
snapshot of the lgroup hierarchy and returns the snapshot's view of the lgroup
hierarchy. Snapshots taken with the view LGRP_VIEW_CALLER
contain
only the resources that are available to the calling thread. Snapshots taken with
the view LGRP_VIEW_OS
contain all the resources that are
available to the operating system.
The lgrp_view
()
function returns EINVAL
when the given cookie is invalid. For more information, see the
lgrp_view
(3LGRP) man page.