Kristian Hoegsberg
96d7fa421e
lib: add idr_for_each()
...
This patch adds an iterator function for the idr data structure. Compared
to just iterating through the idr with an integer and idr_find, this
iterator is (almost, but not quite) linear in the number of elements, as
opposed to the number of integers in the range covered by the idr. This
makes a difference for sparse idrs, but more importantly, it's a nicer way
to iterate through the elements.
The drm subsystem is moving to idr for tracking contexts and drawables, and
with this change, we can use the idr exclusively for tracking these
resources.
[akpm@linux-foundation.org: fix comment]
Signed-off-by: Kristian Hoegsberg <krh@redhat.com>
Cc: Tejun Heo <htejun@gmail.com>
Cc: Dave Airlie <airlied@linux.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-16 09:05:34 -07:00
..
acpi
asm-alpha
PCI: remove pci_dac_dma_... APIs
2007-07-11 16:02:11 -07:00
asm-arm
Merge branch 'ioat-md-accel-for-linus' of git://lost.foo-projects.org/~dwillia2/git/iop
2007-07-13 10:52:27 -07:00
asm-arm26
lots-of-architectures: enable arbitary speed tty support
2007-07-10 17:51:13 -07:00
asm-avr32
lots-of-architectures: enable arbitary speed tty support
2007-07-10 17:51:13 -07:00
asm-blackfin
Blackfin arch: Add peripheral io API to gpio header file
2007-07-12 17:06:45 +08:00
asm-cris
PCI: remove pci_dac_dma_... APIs
2007-07-11 16:02:11 -07:00
asm-frv
frv: missing __clear_user()
2007-07-15 16:40:52 -07:00
asm-generic
sched: simplify sched_find_first_bit()
2007-07-09 18:52:00 +02:00
asm-h8300
PCI: Use a weak symbol for the empty version of pcibios_add_platform_entries()
2007-07-11 16:02:07 -07:00
asm-i386
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6
2007-07-12 13:40:57 -07:00
asm-ia64
[IA64] Un-break ia64 build
2007-07-12 16:04:39 -07:00
asm-m32r
lots-of-architectures: enable arbitary speed tty support
2007-07-10 17:51:13 -07:00
asm-m68k
PCI: Use a weak symbol for the empty version of pcibios_add_platform_entries()
2007-07-11 16:02:07 -07:00
asm-m68knommu
PCI: remove pci_dac_dma_... APIs
2007-07-11 16:02:11 -07:00
asm-mips
[MIPS] Workaround for a sparse warning in include/asm-mips/mach-tx4927/ioremap.h
2007-07-13 17:40:01 +01:00
asm-parisc
PCI: remove pci_dac_dma_... APIs
2007-07-11 16:02:11 -07:00
asm-powerpc
PCI: remove pci_dac_dma_... APIs
2007-07-11 16:02:11 -07:00
asm-ppc
PCI: remove pci_dac_dma_... APIs
2007-07-11 16:02:11 -07:00
asm-s390
lots-of-architectures: enable arbitary speed tty support
2007-07-10 17:51:13 -07:00
asm-sh
PCI: remove pci_dac_dma_... APIs
2007-07-11 16:02:11 -07:00
asm-sh64
PCI: remove pci_dac_dma_... APIs
2007-07-11 16:02:11 -07:00
asm-sparc
PCI: remove pci_dac_dma_... APIs
2007-07-11 16:02:11 -07:00
asm-sparc64
PCI: remove pci_dac_dma_... APIs
2007-07-11 16:02:11 -07:00
asm-um
uml: add asm/paravirt.h
2007-06-24 08:59:11 -07:00
asm-v850
PCI: remove pci_dac_dma_... APIs
2007-07-11 16:02:11 -07:00
asm-x86_64
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6
2007-07-12 13:40:57 -07:00
asm-xtensa
PCI: remove pci_dac_dma_... APIs
2007-07-11 16:02:11 -07:00
crypto
keys
linux
lib: add idr_for_each()
2007-07-16 09:05:34 -07:00
math-emu
media
mtd
net
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
2007-07-15 16:50:46 -07:00
pcmcia
PCMCIA-NETDEV : add new ID of lan&modem multifunction card
2007-07-08 22:16:39 -04:00
rdma
IB/cm: Include HCA ACK delay in local ACK timeout
2007-07-10 21:50:05 -07:00
rxrpc
scsi
[SCSI] Remove unused method scsi_device_cancel
2007-07-14 16:01:16 -05:00
sound
video
Kbuild