Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: allocate memory for USB URB-buffers



Patrick Boettcher wrote:
> Is there a reason why one can't use kmalloc(ATOMIC)? Will it fail as well?

GFP_ATOMIC is only required if you can't sleep (and it lessens the
chances that you get what you're asking for). GFP_KERNEL is sufficient
in dibusb_urb_init().

Documentation/DMA-mapping.txt has some info on the topic of kmalloc()
vs. pci_alloc_consistent().

HTH
Johannes




Home | Main Index | Thread Index