freebsd-skq/share/man/man3
erj da3afdd39f bitstring: add functions to find contiguous set/unset bit sequences
Add bit_ffs_area_at and bit_ffc_area_at functions for searching a bit
string for a sequence of contiguous set or unset bits of at least the
specified size.

The bit_ffc_area function will be used by the Intel ice driver for
implementing resource assignment logic using a bitstring to represent
whether or not a given index has been assigned or is currently free.

The bit_ffs_area, bit_ffc_area_at and bit_ffs_area_at functions are
implemented for completeness.

I'd like to add further test cases for the new functions, but I'm not
really sure how to add them easily. The new functions depend on specific
sequences of bits being set, while the bitstring tests appear to run for
varying bit sizes.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>

Submitted by:	Jacob Keller <jacob.e.keller@intel.com>
Reviewed by:	asomers@, erj@
MFC after:	1 week
Sponsored by:	Intel Corporation
Differential Revision:	https://reviews.freebsd.org/D22400
2019-11-21 19:57:56 +00:00
..
arb.3 Add copyrights that I forgot to add when splitting arb.h off from tree.h. 2019-10-15 19:44:43 +00:00
assert.3
ATOMIC_VAR_INIT.3
bitstring.3 bitstring: add functions to find contiguous set/unset bit sequences 2019-11-21 19:57:56 +00:00
CMSG_DATA.3
end.3
fpgetround.3
intro.3
makedev.3
Makefile Introduce stats(3), a flexible statistics gathering API. 2019-10-07 19:05:05 +00:00
Makefile.depend
offsetof.3
pthread_affinity_np.3
pthread_atfork.3
pthread_attr_affinity_np.3
pthread_attr_get_np.3
pthread_attr_setcreatesuspend_np.3
pthread_attr.3
pthread_barrier_destroy.3
pthread_barrierattr.3
pthread_cancel.3
pthread_cleanup_pop.3
pthread_cleanup_push.3
pthread_cond_broadcast.3
pthread_cond_destroy.3
pthread_cond_init.3
pthread_cond_signal.3
pthread_cond_timedwait.3
pthread_cond_wait.3
pthread_condattr.3
pthread_create.3
pthread_detach.3
pthread_equal.3
pthread_exit.3
pthread_getconcurrency.3
pthread_getcpuclockid.3
pthread_getspecific.3
pthread_getthreadid_np.3
pthread_join.3
pthread_key_create.3
pthread_key_delete.3
pthread_kill.3
pthread_main_np.3
pthread_multi_np.3
pthread_mutex_consistent.3
pthread_mutex_destroy.3
pthread_mutex_init.3
pthread_mutex_lock.3
pthread_mutex_timedlock.3
pthread_mutex_trylock.3
pthread_mutex_unlock.3
pthread_mutexattr_getkind_np.3
pthread_mutexattr.3
pthread_once.3
pthread_resume_all_np.3
pthread_resume_np.3
pthread_rwlock_destroy.3
pthread_rwlock_init.3
pthread_rwlock_rdlock.3
pthread_rwlock_timedrdlock.3
pthread_rwlock_timedwrlock.3
pthread_rwlock_unlock.3
pthread_rwlock_wrlock.3
pthread_rwlockattr_destroy.3
pthread_rwlockattr_getpshared.3
pthread_rwlockattr_init.3
pthread_rwlockattr_setpshared.3
pthread_schedparam.3
pthread_self.3
pthread_set_name_np.3
pthread_setspecific.3
pthread_sigmask.3
pthread_spin_init.3
pthread_spin_lock.3
pthread_suspend_all_np.3
pthread_suspend_np.3
pthread_switch_add_np.3
pthread_testcancel.3
pthread_yield.3
pthread.3
Q_FRAWMASK.3
Q_IFRAWMASK.3
Q_INI.3
Q_IRAWMASK.3
Q_QABS.3
Q_QADDI.3
Q_QADDQ.3
Q_SIGNED.3
Q_SIGNSHFT.3
qmath.3
queue.3
sigevent.3
siginfo.3
stats.3 Introduce stats(3), a flexible statistics gathering API. 2019-10-07 19:05:05 +00:00
stdarg.3
sysexits.3
tgmath.3
timeradd.3
tree.3 Add RB_REINSERT(3), a low overhead alternative to removing a node 2019-09-28 09:22:52 +00:00