Philip Blundell writes:
> > How do I allocate a non-cached/non-buffered chunk of
> > memory in the kernel ?? (an equivalent of kmalloc)
> 
> There is no direct equivalent.  In 2.3 kernels, see the routines in 
> arch/arm/mm/consistent.c.  For 2.2 you will probably have to provide your own 
> implementation using __get_free_page and __ioremap.

Please note that in 2.3 kernels, that consistent API is currently subject to
change, and is unofficial.  ie, just because it exists, it does not mean it
should be used.

The correct API is to use the PCI consistent macros, but with a NULL pci_dev.
Please see linux/Documentation/DMA-mapping.txt for more information.
   _____
  |_____| ------------------------------------------------- ---+---+-
  |   |        Russell King       [EMAIL PROTECTED]      --- ---
  | | | |  http://www.arm.linux.org.uk/~rmk/armlinux.html    /  /  |
  | +-+-+                                                     --- -+-
  /   |               THE developer of ARM Linux              |+| /|\
 /  | | |                                                     ---  |
    +-+-+ -------------------------------------------------  /\\\  |

unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]
++        Please use [EMAIL PROTECTED] for           ++
++                        kernel-related discussions.                      ++

Reply via email to