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) 2018 by Delphix. All rights reserved.
26 #include <sys/zfs_context.h>
28 typedef struct objlist_node
{
33 typedef struct objlist
{
34 list_t ol_list
; /* List of struct objnode. */
36 * Last object looked up. Used to assert that objects are being looked
37 * up in ascending order.
39 uint64_t ol_last_lookup
;
42 objlist_t
*objlist_create(void);
43 void objlist_destroy(objlist_t
*);
44 boolean_t
objlist_exists(objlist_t
*, uint64_t);
45 void objlist_insert(objlist_t
*, uint64_t);
51 #endif /* _OBJLIST_H */