CPU_ZERO_S - Linux


Overview

CPU_ZERO_S sets all the bits in a CPU set to zero. CPU sets are used in the Linux kernel to represent sets of CPUs.

Syntax

*cpu_zero_s(cpuset_t __user user_cpuset)

Options

None

Examples

#include <sched.h>

cpuset_t my_cpuset;

CPU_ZERO_S(&my_cpuset);

Common Issues

None

Integration

CPU_ZERO_S can be used with other CPU set functions such as:

  • CPU_SET_S(cpu, cpuset): Adds the CPU specified by cpu to the CPU set cpuset.
  • CPU_CLR_S(cpu, cpuset): Removes the CPU specified by cpu from the CPU set cpuset.
  • CPU_ISSET_S(cpu, cpuset): Returns true if the CPU specified by cpu is present in the CPU set cpuset, and false otherwise.

Related Commands