summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/bitset.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/sys/bitset.h')
-rw-r--r--usr/src/uts/common/sys/bitset.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/usr/src/uts/common/sys/bitset.h b/usr/src/uts/common/sys/bitset.h
index b14636373b..daf608e835 100644
--- a/usr/src/uts/common/sys/bitset.h
+++ b/usr/src/uts/common/sys/bitset.h
@@ -19,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -72,6 +72,20 @@ int bitset_in_set(bitset_t *, uint_t);
int bitset_is_null(bitset_t *);
uint_t bitset_find(bitset_t *);
+/*
+ * Bitset computations
+ */
+int bitset_and(bitset_t *, bitset_t *, bitset_t *);
+int bitset_or(bitset_t *, bitset_t *, bitset_t *);
+int bitset_xor(bitset_t *, bitset_t *, bitset_t *);
+
+/*
+ * Miscellaneous bitset operations
+ */
+void bitset_zero(bitset_t *);
+void bitset_copy(bitset_t *, bitset_t *);
+int bitset_match(bitset_t *, bitset_t *);
+
#endif /* !_KERNEL && !_KMEMUSER */
#ifdef __cplusplus