FreeBSD/sys/dev/xen/blkback/blkback.c
/**
 * Return an xbb_xen_req_list of allocated xbb_xen_reqs to the free pool.
 *
 * \param xbb	    Per-instance xbb configuration structure.
 * \param req_list  The list of requests to free.
 * \param nreqs	    The number of items in the list.
 */
Return an xbb_xen_req_list of allocated xbb_xen_reqs to the free pool.
\param xbb       Per-instance xbb configuration structure.
\param req_list  The list of requests to free.
\param nreqs     The number of items in the list.
Return an xbb_xen_req_list of allocated xbb_xen_reqs to the free pool . \ param xbb Per - instance xbb configuration structure . \ param req_list The list of requests to free . \ param nreqs The number of items in the list .
static inline void
xbb_release_reqs(struct xbb_softc *xbb, struct xbb_xen_req_list *req_list,
		 int nreqs)
{
	mtx_assert(&xbb->lock, MA_OWNED);
	STAILQ_CONCAT(&xbb->request_free_stailq, req_list);
	xbb->active_request_count -= nreqs;
	KASSERT(xbb->active_request_count >= 0,
		("xbb_release_reqs: negative active count"));
}
static inline void xbb_release_reqs ( struct xbb_softc * xbb , struct xbb_xen_req_list * req_list , int nreqs ) { mtx_assert ( & xbb -> lock , MA_OWNED ) ; STAILQ_CONCAT ( & xbb -> request_free_stailq , req_list ) ; xbb -> active_request_count -= nreqs ; KASSERT ( xbb -> active_request_count >= 0 , ( " " ) ) ; }
Return an xbb_xen_req_list of allocated xbb_xen_reqs to the free pool.
Return an xbb_xen_req_list of allocated xbb_xen_reqs to the free pool .