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

Go to the source code of this file.

Functions

int crush_find_rule (const struct crush_map *map, int ruleset, int type, int size)
 
int crush_do_rule (const struct crush_map *map, int ruleno, int x, int *result, int result_max, const __u32 *weights)
 

Function Documentation

int crush_do_rule ( const struct crush_map map,
int  ruleno,
int  x,
int result,
int  result_max,
const __u32 weight 
)

crush_do_rule - calculate a mapping with the given input and rule : the crush_map : the rule id : hash input

Returns
: pointer to result vector : maximum result size

Definition at line 469 of file mapper.c.

int crush_find_rule ( const struct crush_map map,
int  ruleset,
int  type,
int  size 
)

crush_find_rule - find a crush_rule id for a given ruleset, type, and size. : the crush_map : the storage ruleset id (user defined) : storage ruleset type (user defined) : output set size

Definition at line 36 of file mapper.c.