FV3 Bundle
affinity.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sched.h>
#include <errno.h>
#include <sys/resource.h>
#include <sys/syscall.h>
Include dependency graph for affinity.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 

Functions

static pid_t gettid (void)
 
int get_cpu_affinity (void)
 
int get_cpu_affinity_ (void)
 
void set_cpu_affinity (int cpu)
 
void set_cpu_affinity_ (int *cpu)
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 19 of file affinity.c.

Function Documentation

◆ get_cpu_affinity()

int get_cpu_affinity ( void  )

Definition at line 44 of file affinity.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_cpu_affinity_()

int get_cpu_affinity_ ( void  )

Definition at line 70 of file affinity.c.

Here is the call graph for this function:

◆ gettid()

static pid_t gettid ( void  )
static

Definition at line 30 of file affinity.c.

Here is the caller graph for this function:

◆ set_cpu_affinity()

void set_cpu_affinity ( int  cpu)

Definition at line 76 of file affinity.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_cpu_affinity_()

void set_cpu_affinity_ ( int *  cpu)

Definition at line 87 of file affinity.c.

Here is the call graph for this function: