Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F3152109
bitmap.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
bitmap.h
View Options
/******************************************************************************
*******************************************************************************
**
** 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
Details
Attached
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)
Attached To
Mode
rF Fence Agents
Attached
Detach File
Event Timeline
Log In to Comment