4 * This file and its contents are supplied under the terms of the
5 * Common Development and Distribution License ("CDDL"), version 1.0.
6 * You may only use this file in accordance with the terms of version
9 * A full copy of the text of the CDDL should have accompanied this
10 * source. A copy of the CDDL is also available via the Internet at
11 * http://www.illumos.org/license/CDDL.
16 * Copyright (c) 2014, 2018 by Delphix. All rights reserved.
26 #include <sys/zfs_context.h>
28 typedef struct bqueue
{
35 uint64_t bq_fill_fraction
;
36 size_t bq_node_offset
;
39 typedef struct bqueue_node
{
45 int bqueue_init(bqueue_t
*, uint64_t, uint64_t, size_t);
46 void bqueue_destroy(bqueue_t
*);
47 void bqueue_enqueue(bqueue_t
*, void *, uint64_t);
48 void bqueue_enqueue_flush(bqueue_t
*, void *, uint64_t);
49 void *bqueue_dequeue(bqueue_t
*);
50 boolean_t
bqueue_empty(bqueue_t
*);
56 #endif /* _BQUEUE_H */