lkml.org 
[lkml]   [2002]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: using kmalloc
Date
From
> To allocate more memory, use vmalloc(), which allocates and maps physically
> disjoint pages into a virtually-contiguous region. Be careful when doing DMA
> to a vmalloc() area, since it is not physically contiguous and exists only
> in the kernel's virtual memory map... Also I believe vmalloc()ed memory is
> only accessible from (the context of) the process in which it was allocated
> (?).

vmalloc memory is accessible everywhere. You can't allocate it during
interrupts or tasklets, and you will get deadlocks if you allocate it in the
write out path of a file system/disk driver.

Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.048 / U:1.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site