MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ccp_queue_get_active

Function ccp_queue_get_active

freebsd/crypto/ccp/ccp.h:244–251  ·  view source on GitHub ↗

* Internal inline routines. */

Source from the content-addressed store, hash-verified

242 * Internal inline routines.
243 */
244static inline unsigned
245ccp_queue_get_active(struct ccp_queue *qp)
246{
247 struct ccp_softc *sc;
248
249 sc = qp->cq_softc;
250 return ((qp->cq_tail - qp->cq_head) & ((1 << sc->ring_size_order) - 1));
251}
252
253static inline unsigned
254ccp_queue_get_ring_space(struct ccp_queue *qp)

Callers 1

ccp_queue_get_ring_spaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected