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:48 pm
On Sat, Aug 2, 2008 at 10:47 PM, Johannes Weiner <hannes@saeurebad.de> wrote:
quoted text
> Hi, > > "Yinghai Lu" <yhlu.kernel@gmail.com> writes: > >> 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 > > No patch should introduce wrong behaviour but instead be an atomic > switch to another working state. If 4 gets reverted for any reason > whatsoever, you will be left with a buggy version.
ok, next version i will remove _nopanic 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
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Howells
[PATCH] KEYS: Use the variable 'key' in keyctl_describe_key()
Greg Kroah-Hartman
[PATCH 17/36] sysdev: detect multiple driver registrations
Andy Walls
Re: [PATCH 11/32] v4l/cx18: update workqueue usage
Thomas Gleixner
[patch -mm 19/28] x86_64: Use generic cmos update
Greg Kroah-Hartman
[PATCH 09/36] driver core: register_memory/unregister_memory clean ups and bugfix
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Johannes Schindelin
Re: error: cannot lock ref 'refs/remotes/origin/*'
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Michael Witten
Re: 'git gc --aggressive' effectively unusable
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
linux-netdev
:
David Miller
Re: [PATCH 32/53] netns xfrm: finding policy in netns
Jean-Louis Dupond
Re: tg3 driver not advertising 1000mbit
Jan Engelhardt
[PATCH 1/3] net: tcp: make hybla selectable as default congestion module
Daniel Schaffrath
Re: tcp bw in 2.6
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB (8018): Add em2860 chip ID
Linux Kernel Mailing List
ipv6: fix an oops when force unload ipv6 module
Linux Kernel Mailing List
tracing: protect reader of cmdline output
Linux Kernel Mailing List
imxfb: Fix margin settings
Linux Kernel Mailing List
V4L/DVB (10826): cx88: Add IR support to pcHDTV HD3000 & HD5500
openbsd-misc
:
Stas Miasnikou
Re: Another question: device naming convention
Darrin Chandler
Re: That whole "Linux stealing our code" thing
Community First Financial
Teacher A+ Loan
Jan Stary
Re: audio recording levels
Andrej Elizarov
Re: Web Browsers
Colocation donated by:
Syndicate