FreeBSD/sys/kern/subr_mbpool.c
/*
 * Get the buffer from a handle and keep the card flag.
 */
Get the buffer from a handle and keep the card flag.
Get the buffer from a handle and keep the card flag .
void *
mbp_get_keep(struct mbpool *p, uint32_t h)
{
	struct mbfree *cf;
	struct mbtrail *tr;
	cf = N2C(p, &p->pages[HPAGE(h)], HCHUNK(h));
	tr = C2T(p, cf);
#ifdef DIAGNOSTIC
	if (!(tr->page & MBP_CARD))
		printf("%s: (%s) chunk %u page %u not on card\n", __func__,
		    p->name, HCHUNK(h), HPAGE(h));
#endif
	return (cf);
}
void * mbp_get_keep ( struct mbpool * p , uint32_t h ) { struct mbfree * cf ; struct mbtrail * tr ; cf = N2C ( p , & p -> pages [ HPAGE ( h ) ] , HCHUNK ( h ) ) ; tr = C2T ( p , cf ) ; #ifdef DIAGNOSTIC if ( ! ( tr -> page & MBP_CARD ) ) printf ( " \n " , __func__ , p -> name , HCHUNK ( h ) , HPAGE ( h ) ) ; #endif return ( cf ) ; }
Get the buffer from a handle and keep the card flag.
Get the buffer from a handle and keep the card flag .