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

Go to the source code of this file.

Data Structures

struct  bit_map
 

Functions

int bit_map_string_get (struct bit_map *t, int len, int align)
 
void bit_map_clear (struct bit_map *t, int offset, int len)
 
void bit_map_init (struct bit_map *t, unsigned long *map, int size)
 

Function Documentation

void bit_map_clear ( struct bit_map t,
int  offset,
int  len 
)

Definition at line 102 of file bitext.c.

void bit_map_init ( struct bit_map t,
unsigned long map,
int  size 
)

Definition at line 120 of file bitext.c.

int bit_map_string_get ( struct bit_map t,
int  len,
int  align 
)

bit_map_string_get - find and set a bit string in bit map. : the bit map. : requested string length : requested alignment

Returns offset in the map or -1 if out of space.

Not safe to call from an interrupt (uses spin_lock).

Definition at line 27 of file bitext.c.