krs_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 krs_get_homesrad(void)

Description

The krs_get_homesrad is a kernel service and if the ENHANCED_AFFINITY services are enabled, the krs_get_homesrad subroutine returns the home SRADID of the currently running thread. If the ENHANCED_AFFINITY services are not enabled, the krs_get_homesrad subroutine returns SRADID_ANY. SRADID is the index of a RAD (Resource Allocation Domain) at the R_SRADSDL system detail level. See the krs_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.