aboutsummaryrefslogtreecommitdiff
path: root/lib/memory_alloc.c
Commit message (Collapse)AuthorAgeFilesLines
* flo: Put device-specific code behind #ifndef CONFIG_UML.Lorenzo Colitti2015-05-201-0/+8
| | | | | | This is required to run net_test, which builds for ARCH=um. Change-Id: I9329a3dbf68e788ecddf8c0ca12d0099508c8f52
* Update copyright to The Linux FoundationDuy Truong2013-03-151-1/+1
| | | | | Change-Id: Ibead64ce2e901dede2ddd1b86088b88f2350ce92 Signed-off-by: Duy Truong <dtruong@codeaurora.org>
* lib: Add debugfs file for tracking memory allocationsJordan Crouse2013-02-201-4/+101
| | | | | | | | | | | | | | Add caller information to memory allocation calls and create /sys/kernel/debug/mempool/map to show the current set of allocations across all memory pools. Change-Id: I0f3613158595a3a12837c46dfe500e2e3fea57b9 Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> (cherry picked from commit 9081938c99b91c714316d6fa3a6618ab27789dc7) Conflicts: arch/arm/mach-msm/memory.c
* lib: Remove negative error values from allocate_contiguous_memory_nomapJordan Crouse2013-02-201-7/+4
| | | | | | | | | | allocate_contiguous_memory_nomap returns an unsigned long yet it was returning errno codes for various failures. Replace all negative errno codes with 0, which is what all the callers expect on error anyway. Change-Id: I3f847f70e0d7fa947a3442f43a980b3ffb1bfd96 Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org> (cherry picked from commit f319151ecf9bdb51295ddbf6ac8385f63fd4ae70)
* lib: remove extraneous exports and function prototypesLarry Bassel2013-02-201-2/+1
| | | | | | | | | | | Remove the function prototype for the function alloc_from_memory_pool() (this function was never implemented). The function mem_type_to_memory_pool() was not intended to be exported, so remove the export and function prototypes. Change-Id: Iac47d5c8a8aaf21554c2a7a56f42d6f7de689d3e Signed-off-by: Larry Bassel <lbassel@codeaurora.org> (cherry picked from commit fe7d2ee21af00476fe9e578fcfea1c34a70bd30f)
* lib: memory allocLarry Bassel2013-02-201-0/+332
Add a generic library (which uses genalloc) that manages pools of contiguous memory. APIs are provided to allocate (and if desired map) and free memory, as well to initialize a memory pool. Change-Id: I75deda08eb852a323b4d1a32c3b7980e7aa143a8 Signed-off-by: Larry Bassel <lbassel@codeaurora.org> (cherry picked from commit 54bff5255ff4adf204d2b4a9805cdb998167fb9e)