login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
3
Re: [PATCH 03/25] add dyn_array support
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Yinghai Lu
Subject:
Re: [PATCH 03/25] add dyn_array support
Date: Saturday, August 2, 2008 - 10:40 pm
On Sat, Aug 2, 2008 at 10:39 PM, Yinghai Lu <yhlu.kernel@gmail.com> wrote:
quoted text
> On Sat, Aug 2, 2008 at 10:31 PM, Johannes Weiner <hannes@saeurebad.de> wrote: >> Hi, >> >> "Yinghai Lu" <yhlu.kernel@gmail.com> writes: >> >>> On Sat, Aug 2, 2008 at 9:55 PM, Johannes Weiner <hannes@saeurebad.de> wrote: >>>> Hi, >>>> >>>> "Yinghai Lu" <yhlu.kernel@gmail.com> writes: >>>> >>>>> On Sat, Aug 2, 2008 at 9:03 PM, Johannes Weiner <hannes@saeurebad.de> wrote: >>>>>> Hi, >>>>>> >>>>>> Yinghai Lu <yhlu.kernel@gmail.com> writes: >>>>>> >>>>>>> could have crazy big arrays and allocate them in bootmem at init stage. >>>>>>> also also to allocate array according to size we need to use to avoid wasting >>>>>>> memory >>>>>>> use CONFIG_HAVE_DYN_ARRAY to enable it or not >>>>>>> >>>>>>> usage: >>>>>>> >>>>>>> |static struct irq_desc irq_desc_init __initdata = { >>>>>>> | .status = IRQ_DISABLED, >>>>>>> | .chip = &no_irq_chip, >>>>>>> | .handle_irq = handle_bad_irq, >>>>>>> | .depth = 1, >>>>>>> | .lock = __SPIN_LOCK_UNLOCKED(irq_desc->lock), >>>>>>> |#ifdef CONFIG_SMP >>>>>>> | .affinity = CPU_MASK_ALL >>>>>>> |#endif >>>>>>> |}; >>>>>>> | >>>>>>> |static void __init init_work(void *data) >>>>>>> |{ >>>>>>> | struct dyn_array *da = data; >>>>>>> | struct irq_desc *desc; >>>>>>> | int i; >>>>>>> | >>>>>>> | desc = *da->name; >>>>>> >>>>>> Where *da->name might be NULL... >>> >>> *da->name = __alloc_bootmem_nopanic(size, da->align, phys); >> >> Exactly. Now, look up the possible return values of >> __alloc_bootmem_nopanic and we are almost there... > > 04 fix that via allocating that all together
should be 05 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 00/25] dyn_array and nr_irqs support v3
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 01/25] x86: 64bit support more than 256 irq v2
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 02/25] x86: remove irq_vectors_limits
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 03/25] add dyn_array support
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 04/25] add per_cpu_dyn_array support
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 05/25] x86: alloc dyn_array all alltogether
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 06/25] x86: enable dyn_array support
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 07/25] introduce nr_irqs
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 08/25] x86: using nr_irqs
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 09/25] drivers/char to use nr_irqs
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 10/25] drivers/net to use nr_irqs
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 11/25] drivers intr remapping to use nr_irqs
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 12/25] drivers/pcmcia to use nr_irqs
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 13/25] drivers/rtc to use nr_irqs
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 14/25] drivers/scsi to use nr_irqs
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 15/25] drivers/serial to use nr_irqs
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 16/25] drivers proc to use nr_irqs
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 17/25] drivers xen events to use nr_irqs
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 18/25] make irq_timer_state to use dyn_array
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 19/25] make irq2_iommu to use dyn_array
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 20/25] make irq_desc to use dyn_array
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 21/25] serial: change remove NR_IRQS in 8250.c v2
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 22/25] irq: make irqs in kernel stat use per_cpu_dy ...
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 23/25] x86: use dyn_array in io_apic_xx.c
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 24/25] x86: get mp_irqs from madt
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
[PATCH 25/25] x86: remove nr_irq_vectors
, Yinghai Lu
, (Sat Aug 2, 7:59 pm)
Re: [PATCH 03/25] add dyn_array support
, Johannes Weiner
, (Sat Aug 2, 9:03 pm)
Re: [PATCH 05/25] x86: alloc dyn_array all alltogether
, Johannes Weiner
, (Sat Aug 2, 9:16 pm)
Re: [PATCH 03/25] add dyn_array support
, Yinghai Lu
, (Sat Aug 2, 9:21 pm)
Re: [PATCH 03/25] add dyn_array support
, Johannes Weiner
, (Sat Aug 2, 9:55 pm)
Re: [PATCH 03/25] add dyn_array support
, Yinghai Lu
, (Sat Aug 2, 10:04 pm)
Re: [PATCH 03/25] add dyn_array support
, Johannes Weiner
, (Sat Aug 2, 10:31 pm)
Re: [PATCH 03/25] add dyn_array support
, Yinghai Lu
, (Sat Aug 2, 10:39 pm)
Re: [PATCH 03/25] add dyn_array support
, Yinghai Lu
, (Sat Aug 2, 10:40 pm)
Re: [PATCH 03/25] add dyn_array support
, Johannes Weiner
, (Sat Aug 2, 10:47 pm)
Re: [PATCH 03/25] add dyn_array support
, Yinghai Lu
, (Sat Aug 2, 10:48 pm)
Re: [PATCH 00/25] dyn_array and nr_irqs support v3
, Eric W. Biederman
, (Sat Aug 2, 10:51 pm)
Re: [PATCH 00/25] dyn_array and nr_irqs support v3
, Yinghai Lu
, (Sat Aug 2, 11:04 pm)
Re: [PATCH 00/25] dyn_array and nr_irqs support v3
, Eric W. Biederman
, (Sat Aug 2, 11:39 pm)
Re: [PATCH 00/25] dyn_array and nr_irqs support v3
, Yinghai Lu
, (Sun Aug 3, 1:25 am)
Re: [PATCH 00/25] dyn_array and nr_irqs support v3
, Eric W. Biederman
, (Sun Aug 3, 2:15 am)
Re: [PATCH 15/25] drivers/serial to use nr_irqs
, Alan Cox
, (Sun Aug 3, 6:02 am)
Re: [PATCH 21/25] serial: change remove NR_IRQS in 8250.c v2
, Alan Cox
, (Sun Aug 3, 6:03 am)
Re: [PATCH 21/25] serial: change remove NR_IRQS in 8250.c v2
, Alan Cox
, (Sun Aug 3, 8:14 am)
Re: [PATCH 15/25] drivers/serial to use nr_irqs
, Yinghai Lu
, (Sun Aug 3, 10:43 am)
Re: [PATCH 00/25] dyn_array and nr_irqs support v3
, Yinghai Lu
, (Sun Aug 3, 10:54 am)
Re: [PATCH 00/25] dyn_array and nr_irqs support v3
, Yinghai Lu
, (Sun Aug 3, 12:20 pm)
Re: [PATCH 21/25] serial: change remove NR_IRQS in 8250.c v2
, Eric W. Biederman
, (Sun Aug 3, 12:57 pm)
Re: [PATCH 00/25] dyn_array and nr_irqs support v3
, Yinghai Lu
, (Sun Aug 3, 6:59 pm)
Re: [PATCH 21/25] serial: change remove NR_IRQS in 8250.c v2
, Alan Cox
, (Mon Aug 4, 7:17 am)
Re: [PATCH 00/25] dyn_array and nr_irqs support v3
, Mike Travis
, (Mon Aug 4, 7:31 am)
Re: [PATCH 21/25] serial: change remove NR_IRQS in 8250.c v2
, Yinghai Lu
, (Mon Aug 4, 11:13 am)
Re: [PATCH 21/25] serial: change remove NR_IRQS in 8250.c v2
, Eric W. Biederman
, (Mon Aug 4, 11:51 am)
Re: [PATCH 00/25] dyn_array and nr_irqs support v3
, H. Peter Anvin
, (Tue Aug 5, 4:01 pm)
Re: [PATCH 00/25] dyn_array and nr_irqs support v3
, Yinghai Lu
, (Tue Aug 5, 4:15 pm)
Re: [PATCH 00/25] dyn_array and nr_irqs support v3
, H. Peter Anvin
, (Tue Aug 5, 4:26 pm)
Re: [PATCH 00/25] dyn_array and nr_irqs support v3
, Yinghai Lu
, (Tue Aug 5, 4:53 pm)
[PATCH] serial: Remove NR_IRQS usage
, Alan Cox
, (Wed Aug 6, 6:09 am)
Re: [PATCH] serial: Remove NR_IRQS usage
, Eric W. Biederman
, (Wed Aug 6, 9:10 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rusty Russell
Re: 2.6.22-rc3-mm1
Bill Fink
Re: [PATCH] net: add ability to clear stats via ethtool - e1000/pcnet32
Jeffrey V. Merkey
Re: Versioning file system
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Luben Tuikov
Re: Integration of SCST in the mainstream Linux kernel
git
:
Junio C Hamano
Re: [PATCH] http-push: making HTTP push more robust and more user-friendly
Oliver Kullmann
Re: how to move with history?
Junio C Hamano
Re: [PATCH 2/3] git-add--interactive: remove hunk coalescing
Shawn O. Pearce
Re: Bugs in Gitosis
Alex Riesen
Re: git exclude patterns for directory
linux-netdev
:
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
Patrick McHardy
Re: [rfc 02/13] [RFC 02/13] netfilter: nf_conntrack_sip: Add callid parser
webmaster Maintenance
&#32852;&#31995;&#31995;&#32479;&#31649;&#29702;&#21592;
Krzysztof Oledzki
Re: Error: an inet prefix is expected rather than "0/0".
Rafael J. Wysocki
Re: [PATCH] igb: fix kexec with igb
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
OMAP: DSS2: SDI driver
Linux Kernel Mailing List
PCI: introduce pci_pcie_cap()
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
PCI hotplug: acpiphp: remove superfluous _HPP/_HPX evaluation
openbsd-misc
:
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Jack J. Woehr
Re: Real men don't attack straw men
Úlfar M. E. Johnson
installing openbsd in xen
Eric Furman
Re: Defending OpenBSD Performance
Damien Miller
Re: Patching a SSH 'Weakness'
Colocation donated by:
Syndicate