FreeBSD/sys/dev/ntb/ntb_hw/ntb_hw.c
/*
 * It is expected that this will only be used from contexts where the ctx_lock
 * is not needed to protect ntb_ctx lifetime.
 */
It is expected that this will only be used from contexts where the ctx_lock
is not needed to protect ntb_ctx lifetime.
It is expected that this will only be used from contexts where the ctx_lock is not needed to protect ntb_ctx lifetime .
void *
ntb_get_ctx(struct ntb_softc *ntb, const struct ntb_ctx_ops **ops)
{
	KASSERT(ntb->ntb_ctx != NULL && ntb->ctx_ops != NULL, ("bogus"));
	if (ops != NULL)
		*ops = ntb->ctx_ops;
	return (ntb->ntb_ctx);
}
void * ntb_get_ctx ( struct ntb_softc * ntb , const struct ntb_ctx_ops * * ops ) { KASSERT ( ntb -> ntb_ctx != NULL && ntb -> ctx_ops != NULL , ( " " ) ) ; if ( ops != NULL ) * ops = ntb -> ctx_ops ; return ( ntb -> ntb_ctx ) ; }
It is expected that this will only be used from contexts where the ctx_lock
 is not needed to protect ntb_ctx lifetime.
It is expected that this will only be used from contexts where the ctx_lock is not needed to protect ntb_ctx lifetime .