Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
cpumask.c File Reference
#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/bitops.h>
#include <linux/cpumask.h>
#include <linux/export.h>
#include <linux/bootmem.h>

Go to the source code of this file.

Functions

int __first_cpu (const cpumask_t *srcp)
 
 EXPORT_SYMBOL (__first_cpu)
 
int __next_cpu (int n, const cpumask_t *srcp)
 
 EXPORT_SYMBOL (__next_cpu)
 
int cpumask_next_and (int n, const struct cpumask *src1p, const struct cpumask *src2p)
 
 EXPORT_SYMBOL (cpumask_next_and)
 
int cpumask_any_but (const struct cpumask *mask, unsigned int cpu)
 

Function Documentation

int __first_cpu ( const cpumask_t srcp)

Definition at line 8 of file cpumask.c.

int __next_cpu ( int  n,
const cpumask_t srcp 
)

Definition at line 14 of file cpumask.c.

int cpumask_any_but ( const struct cpumask mask,
unsigned int  cpu 
)

cpumask_any_but - return a "random" in a cpumask, but not this one. : the cpumask to search : the cpu to ignore.

Often used to find any cpu but smp_processor_id() in a mask. Returns >= nr_cpu_ids if no cpus set.

Definition at line 55 of file cpumask.c.

int cpumask_next_and ( int  n,
const struct cpumask src1p,
const struct cpumask src2p 
)

cpumask_next_and - get the next cpu in *src1p & *src2p
: the cpu prior to the place to search (ie. return will be >
) : the first cpumask pointer : the second cpumask pointer

Returns >= nr_cpu_ids if no further cpus set in both.

Definition at line 37 of file cpumask.c.

EXPORT_SYMBOL ( __first_cpu  )
EXPORT_SYMBOL ( __next_cpu  )
EXPORT_SYMBOL ( cpumask_next_and  )