rs_get_homesrad Subroutine

Purpose

Gets the currently running thread's home SRADID (Scheduler Resource Allocation Domain Identifier).

Library

Standard C library (libc.a)

Syntax

#include <sys/rset.h>
sradid_t rs_get_homesrad(void)

Description

If the ENHANCED_AFFINITY services are enabled, the rs_get_homesrad subroutine returns the home SRADID of the currently running thread. If the ENHANCED_AFFINITY services are not enabled, the rs_get_homesrad subroutine returns SRADID_ANY. SRADID is the index of a resource allocation domain (RAD) at the R_SRADSDL system detail level. See the rs_getrad Subroutine subroutine for information about obtaining a resource set that corresponds to a returned SRADID.

Return Values

If the ENHANCED_AFFINITY services are enabled, the home SRADID of the currently running thread is returned. Otherwise, SRADID_ANY is returned.