bitmap - * bitmap_destroy - destroy bitmap. */ struct...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#ifndef _BITMAP_H_ #define _BITMAP_H_ /* * Fixed-size array of bits. (Intended for storage management.) * * Functions: * bitmap_create - allocate a new bitmap object. * Returns NULL on error. * bitmap_getdata - return pointer to raw bit data (for I/O). * bitmap_alloc - locate a cleared bit, set it, and return its index. * bitmap_mark - set a clear bit by its index. * bitmap_unmark - clear a set bit by its index. * bitmap_isset - return whether a particular bit is set or not.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: * bitmap_destroy - destroy bitmap. */ struct bitmap; /* Opaque. */ struct bitmap *bitmap_create(u_int32_t nbits); void *bitmap_getdata(struct bitmap *); int bitmap_alloc(struct bitmap *, u_int32_t *index); void bitmap_mark(struct bitmap *, u_int32_t index); void bitmap_unmark(struct bitmap *, u_int32_t index); int bitmap_isset(struct bitmap *, u_int32_t index); void bitmap_destroy(struct bitmap *); #endif /* _BITMAP_H_ */...
View Full Document

Ask a homework question - tutors are online