summaryrefslogtreecommitdiffstats
path: root/sys/sys/blist.h
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2008-05-05 19:48:54 +0000
committerkmacy <kmacy@FreeBSD.org>2008-05-05 19:48:54 +0000
commitafbf6fcd73e04b6510fe77e5897f4b00bc2951a0 (patch)
tree79b94998e8578f744173c66f743005fc070f6a5b /sys/sys/blist.h
parent9dc66be7968f0fdd657867a3a0accae9a35121fb (diff)
downloadFreeBSD-src-afbf6fcd73e04b6510fe77e5897f4b00bc2951a0.zip
FreeBSD-src-afbf6fcd73e04b6510fe77e5897f4b00bc2951a0.tar.gz
add malloc flag to blist so that it can be used in ithread context
Reviewed by: alc, bsdimp
Diffstat (limited to 'sys/sys/blist.h')
-rw-r--r--sys/sys/blist.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/sys/blist.h b/sys/sys/blist.h
index 5f4d66e..1ddffed 100644
--- a/sys/sys/blist.h
+++ b/sys/sys/blist.h
@@ -29,12 +29,12 @@
* Implements bitmap resource lists.
*
* Usage:
- * blist = blist_create(blocks)
+ * blist = blist_create(blocks, flags)
* (void) blist_destroy(blist)
* blkno = blist_alloc(blist, count)
* (void) blist_free(blist, blkno, count)
* nblks = blist_fill(blist, blkno, count)
- * (void) blist_resize(&blist, count, freeextra)
+ * (void) blist_resize(&blist, count, freeextra, flags)
*
*
* Notes:
@@ -50,6 +50,7 @@
* eats around 32 KBytes of memory.
*
* $FreeBSD$
+
*/
#ifndef _SYS_BLIST_H_
@@ -91,13 +92,13 @@ typedef struct blist {
#define BLIST_MAX_ALLOC BLIST_BMAP_RADIX
-extern blist_t blist_create(daddr_t blocks);
+extern blist_t blist_create(daddr_t blocks, int flags);
extern void blist_destroy(blist_t blist);
extern daddr_t blist_alloc(blist_t blist, daddr_t count);
extern void blist_free(blist_t blist, daddr_t blkno, daddr_t count);
extern int blist_fill(blist_t bl, daddr_t blkno, daddr_t count);
extern void blist_print(blist_t blist);
-extern void blist_resize(blist_t *pblist, daddr_t count, int freenew);
+extern void blist_resize(blist_t *pblist, daddr_t count, int freenew, int flags);
#endif /* _SYS_BLIST_H_ */
OpenPOWER on IntegriCloud