Robuta

https://docs.oracle.com/cd/E36784_01/html/E36877/lgrp-children-3lgrp.html
The lgrp_children() function takes a cookie representing a snapshot of the lgroup hierarchy retrieved from lgrp_init(3LGRP) and returns the number of lgroups...
man pageslgrpchildrensectionextended
https://docs.oracle.com/cd/E36784_01/html/E36877/lgrp-root-3lgrp.html
The lgrp_root() function returns the root lgroup ID. Upon successful completion, lgrp_root() returns the lgroup ID of the root lgroup. Otherwise, it returns...
man pageslgrprootsectionextended
https://docs.oracle.com/cd/E36784_01/html/E36877/lgrp-affinity-get-3lgrp.html
The lgrp_affinity_get() function returns the affinity that the LWP or set of LWPs specified by the idtype and id arguments have for the given lgroup.
get manlgrpaffinitypagessection