ARGOBOTS  dce6e727ffc4ca5b3ffc04cb9517c6689be51ec5
Data Structures | Functions | Variables
abtd_affinity.c File Reference
#include "abti.h"
#include <unistd.h>
Include dependency graph for abtd_affinity.c:

Go to the source code of this file.

Data Structures

struct  global_affinity
 

Functions

static int int_rem (int a, unsigned int b)
 
static ABTU_ret_err int get_num_cores (pthread_t native_thread, int *p_num_cores)
 
static ABTU_ret_err int create_cpuset (pthread_t native_thread, ABTD_affinity_cpuset *p_cpuset)
 
static ABTU_ret_err int read_cpuset (pthread_t native_thread, int max_cpuids, int *cpuids, int *p_num_cpuids)
 
static ABTU_ret_err int apply_cpuset (pthread_t native_thread, const ABTD_affinity_cpuset *p_cpuset)
 

Variables

static global_affinity g_affinity
 

Function Documentation

◆ apply_cpuset()

static ABTU_ret_err int apply_cpuset ( pthread_t  native_thread,
const ABTD_affinity_cpuset *  p_cpuset 
)
static

Definition at line 273 of file abtd_affinity.c.

◆ create_cpuset()

static ABTU_ret_err int create_cpuset ( pthread_t  native_thread,
ABTD_affinity_cpuset *  p_cpuset 
)
static

Definition at line 223 of file abtd_affinity.c.

◆ get_num_cores()

static ABTU_ret_err int get_num_cores ( pthread_t  native_thread,
int *  p_num_cores 
)
static

Definition at line 202 of file abtd_affinity.c.

◆ int_rem()

static int int_rem ( int  a,
unsigned int  b 
)
inlinestatic

Definition at line 192 of file abtd_affinity.c.

◆ read_cpuset()

static ABTU_ret_err int read_cpuset ( pthread_t  native_thread,
int  max_cpuids,
int *  cpuids,
int *  p_num_cpuids 
)
static

Definition at line 249 of file abtd_affinity.c.

Variable Documentation

◆ g_affinity

global_affinity g_affinity
static

Definition at line 190 of file abtd_affinity.c.