Linux Kernel
3.7.1
|
#include <net/netlabel.h>
Go to the source code of this file.
Data Structures | |
struct | ebitmap_node |
struct | ebitmap |
Macros | |
#define | EBITMAP_UNIT_NUMS |
#define | EBITMAP_UNIT_SIZE BITS_PER_LONG |
#define | EBITMAP_SIZE (EBITMAP_UNIT_NUMS * EBITMAP_UNIT_SIZE) |
#define | EBITMAP_BIT 1ULL |
#define | EBITMAP_SHIFT_UNIT_SIZE(x) (((x) >> EBITMAP_UNIT_SIZE / 2) >> EBITMAP_UNIT_SIZE / 2) |
#define | ebitmap_length(e) ((e)->highbit) |
#define | EBITMAP_NODE_INDEX(node, bit) (((bit) - (node)->startbit) / EBITMAP_UNIT_SIZE) |
#define | EBITMAP_NODE_OFFSET(node, bit) (((bit) - (node)->startbit) % EBITMAP_UNIT_SIZE) |
#define | ebitmap_for_each_positive_bit(e, n, bit) |
Functions | |
int | ebitmap_cmp (struct ebitmap *e1, struct ebitmap *e2) |
int | ebitmap_cpy (struct ebitmap *dst, struct ebitmap *src) |
int | ebitmap_contains (struct ebitmap *e1, struct ebitmap *e2) |
int | ebitmap_get_bit (struct ebitmap *e, unsigned long bit) |
int | ebitmap_set_bit (struct ebitmap *e, unsigned long bit, int value) |
void | ebitmap_destroy (struct ebitmap *e) |
int | ebitmap_read (struct ebitmap *e, void *fp) |
int | ebitmap_write (struct ebitmap *e, void *fp) |
#define EBITMAP_NODE_INDEX | ( | node, | |
bit | |||
) | (((bit) - (node)->startbit) / EBITMAP_UNIT_SIZE) |
#define EBITMAP_NODE_OFFSET | ( | node, | |
bit | |||
) | (((bit) - (node)->startbit) % EBITMAP_UNIT_SIZE) |
#define EBITMAP_SHIFT_UNIT_SIZE | ( | x | ) | (((x) >> EBITMAP_UNIT_SIZE / 2) >> EBITMAP_UNIT_SIZE / 2) |
#define EBITMAP_SIZE (EBITMAP_UNIT_NUMS * EBITMAP_UNIT_SIZE) |
#define EBITMAP_UNIT_NUMS |
#define EBITMAP_UNIT_SIZE BITS_PER_LONG |