login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
7
Re: [PATCH 06/33] lmb: Add lmb_reserve_area/lmb_free_area
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Yinghai
Subject:
Re: [PATCH 06/33] lmb: Add lmb_reserve_area/lmb_free_area
Date: Wednesday, April 7, 2010 - 4:36 pm
On 04/07/2010 04:35 PM, Michael Ellerman wrote:
quoted text
> On Tue, 2010-03-30 at 19:16 -0700, Yinghai Lu wrote: >> They will check if the region array is big enough. >> >> __check_and_double_region_array will try to double the region array if that >> array spare slots is not big enough. Old array will be copied to new array. >> > >> diff --git a/include/linux/lmb.h b/include/linux/lmb.h >> index 4cf2f3b..598662f 100644 >> --- a/include/linux/lmb.h >> +++ b/include/linux/lmb.h >> @@ -83,6 +84,9 @@ lmb_end_pfn(struct lmb_region *type, unsigned long region_nr) >> lmb_size_pages(type, region_nr); >> } >> >> +void lmb_reserve_area(u64 start, u64 end, char *name); >> +void lmb_free_area(u64 start, u64 end); >> +void lmb_add_memory(u64 start, u64 end); > > vs > > extern long lmb_reserve(u64 base, u64 size); > extern long lmb_free(u64 base, u64 size); > extern long lmb_add(u64 base, u64 size); > > > Can you tell which ones handle dynamically expanding the region array? > > You're _still_ adding a new API, which I still think is stupid.
please consider to merge them later. Don't want to break current lmb users YH --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH -v11 00/33] use lmb with x86
, Yinghai Lu
, (Tue Mar 30, 7:16 pm)
[PATCH 01/33] x86: Make e820_remove_range() to handle all ...
, Yinghai Lu
, (Tue Mar 30, 7:16 pm)
[PATCH 02/33] lmb: Move lmb.c to mm/
, Yinghai Lu
, (Tue Mar 30, 7:16 pm)
[PATCH 04/33] lmb: Seperate __lmb_find_base() from __lmb_a ...
, Yinghai Lu
, (Tue Mar 30, 7:16 pm)
[PATCH 05/33] lmb: Add lmb_find_area()
, Yinghai Lu
, (Tue Mar 30, 7:16 pm)
[PATCH 06/33] lmb: Add lmb_reserve_area/lmb_free_area
, Yinghai Lu
, (Tue Mar 30, 7:16 pm)
[PATCH 07/33] bootmem, x86: Add weak version of reserve_bo ...
, Yinghai Lu
, (Tue Mar 30, 7:16 pm)
[PATCH 08/33] lmb: Add lmb_to_bootmem()
, Yinghai Lu
, (Tue Mar 30, 7:16 pm)
[PATCH 09/33] lmb: Add get_free_all_memory_range()
, Yinghai Lu
, (Tue Mar 30, 7:16 pm)
[PATCH 10/33] lmb: Add lmb_register_active_regions() and l ...
, Yinghai Lu
, (Tue Mar 30, 7:16 pm)
[PATCH 11/33] lmb: Prepare to include linux/lmb.h in core file
, Yinghai Lu
, (Tue Mar 30, 7:16 pm)
[PATCH 12/33] lmb: Add find_memory_core_early()
, Yinghai Lu
, (Tue Mar 30, 7:16 pm)
[PATCH 13/33] lmb: Add lmb_find_area_node()
, Yinghai Lu
, (Tue Mar 30, 7:16 pm)
[PATCH 14/33] lmb: Add lmb_free_memory_size()
, Yinghai Lu
, (Tue Mar 30, 7:16 pm)
[PATCH 15/33] lmb: Add lmb_memory_size()
, Yinghai Lu
, (Tue Mar 30, 7:17 pm)
[PATCH 17/33] lmb: Use lmb_debug to control debug message ...
, Yinghai Lu
, (Tue Mar 30, 7:17 pm)
[PATCH 18/33] lmb: Add ARCH_DISCARD_LMB to put lmb code to ...
, Yinghai Lu
, (Tue Mar 30, 7:17 pm)
[PATCH 19/33] x86: Add sanitize_e820_map()
, Yinghai Lu
, (Tue Mar 30, 7:17 pm)
[PATCH 20/33] x86, lmb: Add lmb_find_area_size()
, Yinghai Lu
, (Tue Mar 30, 7:17 pm)
[PATCH 21/33] x86, lmb: Add x86 version of __lmb_find_area()
, Yinghai Lu
, (Tue Mar 30, 7:17 pm)
[PATCH 22/33] x86: Use lmb to replace early_res
, Yinghai Lu
, (Tue Mar 30, 7:17 pm)
[PATCH 23/33] x86: Replace e820_/_early string with lmb_
, Yinghai Lu
, (Tue Mar 30, 7:17 pm)
[PATCH 24/33] nobootmem: use lmb.default_alloc_limit in al ...
, Yinghai Lu
, (Tue Mar 30, 7:17 pm)
[PATCH 25/33] x86, lmb: turn off ARCH_LMB_FIND_AREA
, Yinghai Lu
, (Tue Mar 30, 7:17 pm)
[PATCH 26/33] x86: Remove not used early_res code
, Yinghai Lu
, (Tue Mar 30, 7:17 pm)
[PATCH 27/33] x86, lmb: Use lmb_memory_size()/lmb_free_mem ...
, Yinghai Lu
, (Tue Mar 30, 7:17 pm)
[PATCH 28/33] x86: Align e820 ram range to page
, Yinghai Lu
, (Tue Mar 30, 7:17 pm)
[PATCH 30/33] x86: Add get_centaur_ram_top()
, Yinghai Lu
, (Tue Mar 30, 7:17 pm)
[PATCH 31/33] x86: Change e820_any_mapped() to __init
, Yinghai Lu
, (Tue Mar 30, 7:17 pm)
[PATCH 32/33] x86: Use walk_system_ream_range() instead of ...
, Yinghai Lu
, (Tue Mar 30, 7:17 pm)
[PATCH 33/33] x86: make e820 to be __initdata
, Yinghai Lu
, (Tue Mar 30, 7:17 pm)
Re: [PATCH 06/33] lmb: Add lmb_reserve_area/lmb_free_area
, Michael Ellerman
, (Wed Apr 7, 4:35 pm)
Re: [PATCH 06/33] lmb: Add lmb_reserve_area/lmb_free_area
, Yinghai
, (Wed Apr 7, 4:36 pm)
Re: [PATCH 25/33] x86, lmb: turn off ARCH_LMB_FIND_AREA
, Michael Ellerman
, (Wed Apr 7, 4:38 pm)
Re: [PATCH 25/33] x86, lmb: turn off ARCH_LMB_FIND_AREA
, Yinghai
, (Wed Apr 7, 4:40 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ken Chen
[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Ingo Molnar
Re: [PATCH v3] x86: merge the simple bitops and move them to bitops.h
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Andi Kleen
Re: - romsignature-checksum-cleanup-2.patch removed from -mm tree
Yinghai Lu
[PATCH 09/49] memblock: Remove rmo_size, burry it in arch/powerpc where it belongs
git
:
Junio C Hamano
Re: Teach "git checkout" to use git-show-ref
Christian Jaeger
Re: Problem with Git.pm bidi_pipe methods
Linus Torvalds
[PATCH 1/7] Make unpack_trees_options bit flags actual bitfields
Jon Smirl
stgit: managing signed-off-by lines
Han-Wen Nienhuys
Re: Cleaning up git user-interface warts
git-commits-head
:
Linux Kernel Mailing List
MIPS: Bonito64: Make Loongson independent from Bonito64 code.
Linux Kernel Mailing List
iwlwifi: initialize spinlock before use
Linux Kernel Mailing List
i2c-i801: Add Intel Cougar Point device IDs
Linux Kernel Mailing List
drm/i915: Add information on pinning and fencing to the i915 list debug.
Linux Kernel Mailing List
Btrfs: Disable btree reada during extent backref lookups.
linux-netdev
:
Gerrit Renker
v2 [PATCH 1/4] dccp: Limit feature negotiation to connection setup phase
Richard Cochran
Re: [PATCH v3 3/3] ptp: Added a clock that uses the eTSEC found on the MPC85xx.
Inaky Perez-Gonzalez
[PATCH 40/40] wimax/i2400m: add CREDITS and MAINTAINERS entries
Miloslav Trmac
Re: RFC: Crypto API User-interface
David Miller
Re: [net-next-2.6 PATCH] ixgbevf: Refactor ring parameter re-size
freebsd-current
:
Boris Samorodov
Re: twa + dump = sbwait
韓家標 Bill Hacker
Re: ZFS honesty
Bjoern A. Zeeb
Re: Can not boot 7.0-BETA3 with IPSEC
FreeBSD Tinderbox
[head tinderbox] failure on i386/i386
Rong-en Fan
ad0: setting up DMA failed / FAILURE - load data ?
Colocation donated by:
Syndicate