NUMA++ 0.11.0
Loading...
Searching...
No Matches
lowlevel.hpp File Reference

Contains low-level functions. More...

#include "config.hpp"
#include <sched.h>
#include <system_error>
#include <variant>
#include "cpumask.hpp"
#include "nodemask.hpp"

Go to the source code of this file.

Namespaces

namespace  numapp
 
namespace  numapp::ll
 Defines lowlevel functions that should not be used directly.
 

Functions

std::error_code numapp::ll::SetSchedulerPolicy (pid_t pid, int policy, int static_priority, int dynamic_priority) noexcept
 A low-level, and error prone function to set policy.
 
std::error_code numapp::ll::GetSchedulerPolicy (pid_t pid, int *policy, int *static_priority, int *dynamic_priority) noexcept
 A low-level, and error prone function to get policy.
 
std::error_code numapp::ll::GetCpuAffinity (pid_t ttid, Cpumask &mask) noexcept
 Get CPU affinity.
 
std::error_code numapp::ll::SetCpuAffinity (pid_t ttid, Cpumask const &mask) noexcept
 Set CPU affinity.
 
std::error_code numapp::ll::NumaNodeToCpumask (int node, Cpumask &mask) noexcept
 Convert NUMA node number to corresponding CPU mask.
 
std::error_code numapp::ll::GetMemPolicy (int &mode, Nodemask &mask, void *addr, unsigned flags) noexcept
 Get memory policy for calling thread or an address.
 
std::error_code numapp::ll::SetMemPolicy (int mode, Nodemask const &mask) noexcept
 Set active memory policy for calling thread.
 
std::error_code numapp::ll::SetMemPolicy (void *addr, std::size_t len, int mode, Nodemask const &mask, unsigned flags) noexcept
 Set memory policy for memory range.
 

Detailed Description

Contains low-level functions.

Definition in file lowlevel.hpp.