Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Feb 2009 15:22:05 +0100
From:      Patrick =?ISO-8859-15?Q?Lamaizi=E8re?= <patfbsd@davenulle.org>
To:        freebsd-hackers@FreeBSD.org
Subject:   bus_dmamem_alloc() and BUS_DMA_WAITOK
Message-ID:  <20090213152205.0eccafb0@baby-jane.lamaiziere.net>

next in thread | raw e-mail | index | archive | help
Hello,

I would like to know if it is safe to use the BUS_DMA_WAITOK flag with
bus_dmamem_alloc(), in the context of the device_attach routine? Many
drivers use BUS_DMA_NOWAIT.

I need a 32Ko buffer and on low memory my driver cannot attach
(bus_dmamem_alloc returns ENOMEM). Will BUS_DMA_WAITOK help in this
case?

Thanks in advance, regards.



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