Programming Interfaces Guide

Using lgrp_root()

The lgrp_root() function returns the root lgroup ID.

#include <sys/lgrp_user.h>
lgrp_id_t lgrp_root(lgrp_cookie_t cookie);

The lgrp_root() function takes a cookie representing a snapshot of the lgroup hierarchy and returns the root lgroup ID.