8#ifndef NUMAPP_LOWLEVEL_HPP_
9#define NUMAPP_LOWLEVEL_HPP_
13#include <system_error>
33SetSchedulerPolicy(pid_t pid,
int policy,
int static_priority,
int dynamic_priority) NUMAPP_NOEXCEPT;
43GetSchedulerPolicy(pid_t pid,
int* policy,
int* static_priority,
int* dynamic_priority) NUMAPP_NOEXCEPT;
Contains declarations for CpumaskTrait.
Defines lowlevel functions that should not be used directly.
std::error_code GetCpuAffinity(pid_t ttid, Cpumask &mask) noexcept
Get CPU affinity.
std::error_code SetMemPolicy(int mode, Nodemask const &mask) noexcept
Set active memory policy for calling thread.
std::error_code 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 GetMemPolicy(int &mode, Nodemask &mask, void *addr, unsigned flags) noexcept
Get memory policy for calling thread or an address.
std::error_code NumaNodeToCpumask(int node, Cpumask &mask) noexcept
Convert NUMA node number to corresponding CPU mask.
std::error_code 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 SetCpuAffinity(pid_t ttid, Cpumask const &mask) noexcept
Set CPU affinity.
Contains declarations for Nodemask.
Type-safe NUMA node mask.