summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/bitset.h
diff options
context:
space:
mode:
authordh142964 <David.Hollister@Sun.COM>2009-09-30 13:40:27 -0600
committerdh142964 <David.Hollister@Sun.COM>2009-09-30 13:40:27 -0600
commit4c06356b0f0fffb4fc1b6eccc8e5d8e2254a84d6 (patch)
tree17ba947a21901975bb128b8c535cb0575d4c9a4a /usr/src/uts/common/sys/bitset.h
parent7b57f05abb8796d3c91c8d4d4c75dcafb5af6b69 (diff)
downloadillumos-joyent-4c06356b0f0fffb4fc1b6eccc8e5d8e2254a84d6.tar.gz
PSARC 2008/672 thebe SAS/SATA driver
PSARC 2008/755 ddi_ssoft_state(9F) and ddi_isoft_state(9F) PSARC 2008/764 Cfgadm SCSI-Plugin MPxIO Support PSARC 2009/125 scsi_device property interfaces 6726110 pmcs driver (driver for thebe) 6726867 SCSAv3
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