FreeBSD/sys/dev/xen/blkback/blkback.c
/*------------------------ Inter-Domain Communication ------------------------*/
/**
 * Free dynamically allocated KVA or pseudo-physical address allocations.
 *
 * \param xbb  Per-instance xbb configuration structure.
 */
Inter-Domain Communication
Free dynamically allocated KVA or pseudo-physical address allocations.

\param xbb  Per-instance xbb configuration structure.
Inter - Domain Communication Free dynamically allocated KVA or pseudo - physical address allocations . \ param xbb Per - instance xbb configuration structure .
static void
xbb_free_communication_mem(struct xbb_softc *xbb)
{
	if (xbb->kva != 0) {
		if (xbb->pseudo_phys_res != NULL) {
			xenmem_free(xbb->dev, xbb->pseudo_phys_res_id,
			    xbb->pseudo_phys_res);
			xbb->pseudo_phys_res = NULL;
		}
	}
	xbb->kva = 0;
	xbb->gnt_base_addr = 0;
	if (xbb->kva_free != NULL) {
		free(xbb->kva_free, M_XENBLOCKBACK);
		xbb->kva_free = NULL;
	}
}
static void xbb_free_communication_mem ( struct xbb_softc * xbb ) { if ( xbb -> kva != 0 ) { if ( xbb -> pseudo_phys_res != NULL ) { xenmem_free ( xbb -> dev , xbb -> pseudo_phys_res_id , xbb -> pseudo_phys_res ) ; xbb -> pseudo_phys_res = NULL ; } } xbb -> kva = 0 ; xbb -> gnt_base_addr = 0 ; if ( xbb -> kva_free != NULL ) { free ( xbb -> kva_free , M_XENBLOCKBACK ) ; xbb -> kva_free = NULL ; } }
Inter-Domain Communication
 Free dynamically allocated KVA or pseudo-physical address allocations.
Inter - Domain Communication Free dynamically allocated KVA or pseudo - physical address allocations .