Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Mar 2008 18:08:55 +0200
From:      "Mr Y" <yonyossef.lists@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   bus_dmamem_alloc
Message-ID:  <20def4870803200908q63137451p7bf052337a2cc5e0@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I'm trying to use bus_dmamem_alloc. The function man says:

    /*
     * Allocate a piece of memory that can be efficiently mapped into
     * bus device space based on the constraints listed in the dma tag.
     * A dmamap to for use with dmamap_load is also allocated.
     */

so I'm running:

err =
bus_dmamem_alloc(ring->dma_tag, &ring->buf,
BUS_DMA_NOWAIT|BUS_DMA_ALLOCNOW, &ring->dma_map);

but after calling bus_dmamem_allloc the dma_map variable is still NULL. is
this OK?

Thx, Yony



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20def4870803200908q63137451p7bf052337a2cc5e0>