kernel-ark/include/asm-arm
Davide Libenzi f348d70a32 [PATCH] POLLRDHUP/EPOLLRDHUP handling for half-closed devices notifications
Implement the half-closed devices notifiation, by adding a new POLLRDHUP
(and its alias EPOLLRDHUP) bit to the existing poll/select sets.  Since the
existing POLLHUP handling, that does not report correctly half-closed
devices, was feared to be changed, this implementation leaves the current
POLLHUP reporting unchanged and simply add a new bit that is set in the few
places where it makes sense.  The same thing was discussed and conceptually
agreed quite some time ago:

http://lkml.org/lkml/2003/7/12/116

Since this new event bit is added to the existing Linux poll infrastruture,
even the existing poll/select system calls will be able to use it.  As far
as the existing POLLHUP handling, the patch leaves it as is.  The
pollrdhup-2.6.16.rc5-0.10.diff defines the POLLRDHUP for all the existing
archs and sets the bit in the six relevant files.  The other attached diff
is the simple change required to sys/epoll.h to add the EPOLLRDHUP
definition.

There is "a stupid program" to test POLLRDHUP delivery here:

 http://www.xmailserver.org/pollrdhup-test.c

It tests poll(2), but since the delivery is same epoll(2) will work equally.

Signed-off-by: Davide Libenzi <davidel@xmailserver.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Michael Kerrisk <mtk-manpages@gmx.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-25 08:22:56 -08:00
..
arch-aaec2000 [ARM] Move HZ definition into Kconfig 2006-03-21 22:05:45 +00:00
arch-at91rm9200 [PATCH] AT91RM9200 Ethernet driver 2006-03-24 12:10:55 -05:00
arch-cl7500 [ARM] Collect 8250-based debug implementations together 2006-03-21 22:05:57 +00:00
arch-clps711x [ARM] Move HZ definition into Kconfig 2006-03-21 22:05:45 +00:00
arch-ebsa110 [ARM] Collect 8250-based debug implementations together 2006-03-21 22:05:57 +00:00
arch-ebsa285 [ARM] Collect 8250-based debug implementations together 2006-03-21 22:05:57 +00:00
arch-ep93xx [ARM] 3374/1: ep93xx: gpio interrupt support 2006-03-21 22:06:21 +00:00
arch-h720x [ARM] Remove asm/arch/irq.h 2006-03-21 22:05:46 +00:00
arch-imx [ARM] Remove asm/arch/irq.h 2006-03-21 22:05:46 +00:00
arch-integrator [ARM] Collect Primecell PL01x-based debug implementations together 2006-03-21 22:05:58 +00:00
arch-iop3xx [ARM] Collect 8250-based debug implementations together 2006-03-21 22:05:57 +00:00
arch-ixp4xx [ARM] 3349/1: ixp4xx exp bus defines 2006-03-21 22:06:08 +00:00
arch-ixp2000 [ARM] 3381/1: ixp2000: fix slowport write timing control register fields 2006-03-22 20:14:11 +00:00
arch-l7200 [ARM] Move HZ definition into Kconfig 2006-03-21 22:05:45 +00:00
arch-lh7a40x [ARM] Remove asm/arch/irq.h 2006-03-21 22:05:46 +00:00
arch-omap [ARM] Move HZ definition into Kconfig 2006-03-21 22:05:45 +00:00
arch-pxa Merge master.kernel.org:/home/rmk/linux-2.6-arm 2006-03-22 17:32:09 -08:00
arch-realview [ARM] Collect Primecell PL01x-based debug implementations together 2006-03-21 22:05:58 +00:00
arch-rpc [ARM] Collect 8250-based debug implementations together 2006-03-21 22:05:57 +00:00
arch-s3c2410 [ARM] 3333/1: S3C2XX - add dclk and clkout clock support 2006-03-21 22:06:05 +00:00
arch-sa1100 [ARM] Fix SA1100 debug-macros.S 2006-03-21 22:05:55 +00:00
arch-shark [ARM] Move HZ definition into Kconfig 2006-03-21 22:05:45 +00:00
arch-versatile [ARM] Collect Primecell PL01x-based debug implementations together 2006-03-21 22:05:58 +00:00
hardware [ARM] 3373/1: move uengine loader to arch/arm/common 2006-03-21 22:06:16 +00:00
mach [ARM] Quieten spurious IRQ detection 2006-03-22 10:22:58 +00:00
a.out.h
apm.h
assembler.h [ARM] Clean up save_and_disable_irqs macro and allow use of ARMv6 CPSID 2005-11-09 15:04:22 +00:00
atomic.h [PATCH] mutex subsystem, add atomic_xchg() to all arches 2006-01-09 15:59:17 -08:00
auxvec.h
bitops.h [FLS64]: generic version 2006-01-03 13:11:06 -08:00
bug.h
bugs.h
byteorder.h [ARM] 3252/1: help gcc do the best with ___arch__swab32 2006-01-10 19:48:02 +00:00
cache.h [PATCH] Kill L1_CACHE_SHIFT_MAX 2006-01-08 20:13:39 -08:00
cacheflush.h [ARM] Cleanup ARM includes 2006-01-03 17:39:34 +00:00
checksum.h [ARM] 3292/1: Fix memory corruption in asm-arm/checksum.h: ip_fast_csum() 2006-02-01 19:26:00 +00:00
cpu-multi32.h
cpu-single.h
cpu.h [ARM SMP] Track CPU idle threads 2005-11-02 21:51:40 +00:00
cputime.h
current.h
delay.h [ARM] 3346/1: Fix udelay() for HZ values different from 100 2006-03-21 22:06:07 +00:00
div64.h
dma-mapping.h
dma.h [ARM] Move common definition of MAX_DMA_ADDRESS to asm/dma.h 2006-01-04 15:30:48 +00:00
domain.h
ecard.h
elf.h [ARM] 3205/1: Handle new EABI relocations when loading kernel modules. 2005-12-14 22:04:22 +00:00
emergency-restart.h
errno.h
fcntl.h
fiq.h
floppy.h
fpstate.h [ARM] iwmmxt thread state alignment 2006-03-12 22:36:06 +00:00
futex.h [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
glue.h
hardirq.h [ARM SMP] Add core ARM support for local timers 2005-11-08 19:08:05 +00:00
hardware.h
ide.h
io.h [PATCH] remove ISA legacy functions: remove the helpers 2006-03-24 07:33:19 -08:00
ioctl.h [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
ioctls.h
ipc.h
ipcbuf.h
irq.h [ARM] Fix cosmetic typo in asm/irq.h 2006-03-20 10:12:31 +00:00
kmap_types.h
leds.h
limits.h
linkage.h
local.h
locks.h
mc146818rtc.h
memory.h [ARM] 3209/1: Configurable DMA-consistent memory region 2006-01-12 16:12:21 +00:00
mman.h [PATCH] add asm-generic/mman.h 2006-02-15 15:32:22 -08:00
mmu_context.h [ARM] Add linux/compiler.h includes where required 2005-11-16 17:23:57 +00:00
mmu.h
mmzone.h
module.h
msgbuf.h
mtd-xip.h
mutex.h [ARM] 3311/1: clean up include/asm-arm/mutex.h 2006-02-08 21:19:38 +00:00
namei.h
numnodes.h [ARM] Add asm/memory.h to asm/numnodes.h 2005-11-21 15:26:18 +00:00
nwflash.h
page.h [ARM] 3101/1: ARM EABI: slab memory must be 64-bit aligned 2006-01-14 16:18:07 +00:00
param.h [ARM] Move HZ definition into Kconfig 2006-03-21 22:05:45 +00:00
parport.h
pci.h
percpu.h
pgalloc.h
pgtable.h [ARM] 3269/1: Add ARMv6 MT_NONSHARED_DEVICE mem_types[] index 2006-01-26 15:21:28 +00:00
poll.h [PATCH] POLLRDHUP/EPOLLRDHUP handling for half-closed devices notifications 2006-03-25 08:22:56 -08:00
posix_types.h
proc-fns.h
processor.h [ARM] start_thread fixup for nommu mode 2006-01-13 21:04:17 +00:00
procinfo.h
ptrace.h [ARM] 3262/4: allow ptraced syscalls to be overriden 2006-01-14 19:30:04 +00:00
resource.h
rtc.h
scatterlist.h [ARM] Remove '__address' from scatterlist and convert to DMA API 2006-01-04 15:08:30 +00:00
sections.h
segment.h
semaphore-helper.h
semaphore.h [ARM] sema_count() removal 2005-12-01 20:58:01 +00:00
sembuf.h
serial.h
setup.h
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h
sizes.h
smp.h [ARM] Fix SMP initialisation oops 2006-02-16 11:08:09 +00:00
socket.h
sockios.h
spinlock_types.h
spinlock.h [ARM SMP] Use event instructions for spinlocks 2005-12-01 15:47:24 +00:00
stat.h [ARM] 3106/2: ARM EABI: some syscall adjustments 2006-01-14 16:32:12 +00:00
statfs.h [ARM] 3108/2: old ABI compat: statfs64 and fstatfs64 2006-01-14 16:35:03 +00:00
string.h
suspend.h
system.h [ARM] 3364/1: [cleanup] warning fix - definitions for enable_hlt and disable_hlt 2006-03-15 23:17:26 +00:00
termbits.h
termios.h
therm.h
thread_info.h [ARM] iwmmxt thread state alignment 2006-03-12 22:36:06 +00:00
timex.h
tlb.h
tlbflush.h [ARM] 3352/1: DSB required for the completion of a TLB maintenance operation 2006-03-07 14:42:27 +00:00
topology.h
traps.h
types.h
uaccess.h [ARM] Fix get_user when passed a const pointer 2005-11-18 14:22:03 +00:00
ucontext.h
unaligned.h
unistd.h [ARM] 3339/1: ARM EABI: make unmuxed syscalls visible 2006-02-16 22:36:15 +00:00
user.h
vfp.h
vfpmacros.h
vga.h
xor.h