#include "crush.h"
Go to the source code of this file.
Functions | 
| struct crush_map *  | crush_create () | 
| void  | crush_finalize (struct crush_map *map) | 
| struct crush_rule *  | crush_make_rule (int len, int pool, int type, int minsize, int maxsize) | 
| void  | crush_rule_set_step (struct crush_rule *rule, int pos, int op, int arg1, int arg2) | 
| int  | crush_add_rule (struct crush_map *map, struct crush_rule *rule, int ruleno) | 
| int  | crush_get_next_bucket_id (struct crush_map *map) | 
| int  | crush_add_bucket (struct crush_map *map, int bucketno, struct crush_bucket *bucket) | 
| struct crush_bucket *  | crush_make_bucket (int alg, int hash, int type, int size, int *items, int *weights) | 
| struct crush_bucket_uniform *  | crush_make_uniform_bucket (int hash, int type, int size, int *items, int item_weight) | 
| struct crush_bucket_list *  | crush_make_list_bucket (int hash, int type, int size, int *items, int *weights) | 
| struct crush_bucket_tree *  | crush_make_tree_bucket (int hash, int type, int size, int *items, int *weights) | 
| struct crush_bucket_straw *  | crush_make_straw_bucket (int hash, int type, int size, int *items, int *weights) | 
Function Documentation
      
        
          | void crush_finalize  | 
          ( | 
          struct crush_map *  | 
           map ) | 
           | 
        
      
 
 
      
        
          | int crush_get_next_bucket_id  | 
          ( | 
          struct crush_map *  | 
           map ) | 
           | 
        
      
 
 
      
        
          | struct crush_bucket* crush_make_bucket  | 
          ( | 
          int  | 
           alg,  | 
        
        
           | 
           | 
          int  | 
           hash,  | 
        
        
           | 
           | 
          int  | 
           type,  | 
        
        
           | 
           | 
          int  | 
           size,  | 
        
        
           | 
           | 
          int *  | 
           items,  | 
        
        
           | 
           | 
          int *  | 
           weights  | 
        
        
           | 
          ) | 
           |  [read] | 
        
      
 
 
      
        
          | struct crush_bucket_list* crush_make_list_bucket  | 
          ( | 
          int  | 
           hash,  | 
        
        
           | 
           | 
          int  | 
           type,  | 
        
        
           | 
           | 
          int  | 
           size,  | 
        
        
           | 
           | 
          int *  | 
           items,  | 
        
        
           | 
           | 
          int *  | 
           weights  | 
        
        
           | 
          ) | 
           |  [read] | 
        
      
 
 
      
        
          | struct crush_rule* crush_make_rule  | 
          ( | 
          int  | 
           len,  | 
        
        
           | 
           | 
          int  | 
           pool,  | 
        
        
           | 
           | 
          int  | 
           type,  | 
        
        
           | 
           | 
          int  | 
           minsize,  | 
        
        
           | 
           | 
          int  | 
           maxsize  | 
        
        
           | 
          ) | 
           |  [read] | 
        
      
 
 
      
        
          | struct crush_bucket_straw* crush_make_straw_bucket  | 
          ( | 
          int  | 
           hash,  | 
        
        
           | 
           | 
          int  | 
           type,  | 
        
        
           | 
           | 
          int  | 
           size,  | 
        
        
           | 
           | 
          int *  | 
           items,  | 
        
        
           | 
           | 
          int *  | 
           weights  | 
        
        
           | 
          ) | 
           |  [read] | 
        
      
 
 
      
        
          | struct crush_bucket_tree* crush_make_tree_bucket  | 
          ( | 
          int  | 
           hash,  | 
        
        
           | 
           | 
          int  | 
           type,  | 
        
        
           | 
           | 
          int  | 
           size,  | 
        
        
           | 
           | 
          int *  | 
           items,  | 
        
        
           | 
           | 
          int *  | 
           weights  | 
        
        
           | 
          ) | 
           |  [read] | 
        
      
 
 
      
        
          | struct crush_bucket_uniform* crush_make_uniform_bucket  | 
          ( | 
          int  | 
           hash,  | 
        
        
           | 
           | 
          int  | 
           type,  | 
        
        
           | 
           | 
          int  | 
           size,  | 
        
        
           | 
           | 
          int *  | 
           items,  | 
        
        
           | 
           | 
          int  | 
           item_weight  | 
        
        
           | 
          ) | 
           |  [read] | 
        
      
 
 
      
        
          | void crush_rule_set_step  | 
          ( | 
          struct crush_rule *  | 
           rule,  | 
        
        
           | 
           | 
          int  | 
           pos,  | 
        
        
           | 
           | 
          int  | 
           op,  | 
        
        
           | 
           | 
          int  | 
           arg1,  | 
        
        
           | 
           | 
          int  | 
           arg2  | 
        
        
           | 
          ) | 
           |  |