Page MenuHomeClusterLabs Projects

bitmap.h
No OneTemporary

bitmap.h

/******************************************************************************
*******************************************************************************
**
** Copyright (C) 2005 Red Hat, Inc. All rights reserved.
**
** This copyrighted material is made available to anyone wishing to use,
** modify, copy, or redistribute it subject to the terms and conditions
** of the GNU General Public License v.2.
**
*******************************************************************************
******************************************************************************/
#ifndef _BITMAP_H
#define _BITMAP_H
struct bmap {
uint64_t size;
uint64_t mapsize;
int chunksize;
int chunks_per_byte;
char *map;
};
int bitmap_create(struct bmap *bmap, uint64_t size, uint8_t bitsize);
int bitmap_set(struct bmap *bmap, uint64_t offset, uint8_t val);
int bitmap_get(struct bmap *bmap, uint64_t bit, uint8_t *val);
int bitmap_clear(struct bmap *bmap, uint64_t offset);
void bitmap_destroy(struct bmap *bmap);
uint64_t bitmap_size(struct bmap *bmap);
#endif /* _BITMAP_H */

File Metadata

Mime Type
text/x-c
Expires
Mon, Feb 24, 4:02 PM (55 m, 53 s ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1464321
Default Alt Text
bitmap.h (1 KB)

Event Timeline