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

Go to the source code of this file.

Functions

struct cpu_rmapalloc_cpu_rmap (unsigned int size, gfp_t flags)
 
 EXPORT_SYMBOL (alloc_cpu_rmap)
 
int cpu_rmap_add (struct cpu_rmap *rmap, void *obj)
 
 EXPORT_SYMBOL (cpu_rmap_add)
 
int cpu_rmap_update (struct cpu_rmap *rmap, u16 index, const struct cpumask *affinity)
 
 EXPORT_SYMBOL (cpu_rmap_update)
 

Function Documentation

struct cpu_rmap* alloc_cpu_rmap ( unsigned int  size,
gfp_t  flags 
)
read

alloc_cpu_rmap - allocate CPU affinity reverse-map : Number of objects to be mapped : Allocation flags e.g. GFP_KERNEL

Definition at line 30 of file cpu_rmap.c.

int cpu_rmap_add ( struct cpu_rmap rmap,
void obj 
)

cpu_rmap_add - add object to a rmap : CPU rmap allocated with alloc_cpu_rmap() : Object to add to rmap

Return index of object.

Definition at line 113 of file cpu_rmap.c.

int cpu_rmap_update ( struct cpu_rmap rmap,
u16  index,
const struct cpumask affinity 
)

cpu_rmap_update - update CPU rmap following a change of object affinity : CPU rmap to update : Index of object whose affinity changed : New CPU affinity of object

Definition at line 130 of file cpu_rmap.c.

EXPORT_SYMBOL ( alloc_cpu_rmap  )
EXPORT_SYMBOL ( cpu_rmap_add  )
EXPORT_SYMBOL ( cpu_rmap_update  )