add bit-radix.h to the repo

master
Chris Mason 2007-04-24 12:45:36 -04:00 committed by David Woodhouse
parent 49bedc2cb4
commit 0b3c55b251
1 changed files with 15 additions and 0 deletions

15
bit-radix.h 100644
View File

@ -0,0 +1,15 @@
#ifndef __BIT_RADIX__
#define __BIT_RADIX__
#include "radix-tree.h"
int set_radix_bit(struct radix_tree_root *radix, unsigned long bit);
int test_radix_bit(struct radix_tree_root *radix, unsigned long bit);
int clear_radix_bit(struct radix_tree_root *radix, unsigned long bit);
int find_first_radix_bit(struct radix_tree_root *radix, unsigned long *retbits,
unsigned long start, int nr);
static inline void init_bit_radix(struct radix_tree_root *radix)
{
INIT_RADIX_TREE(radix, GFP_NOFS);
}
#endif