You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
19 years ago
..
a.out.h
Linux-2.6.12-rc2
20 years ago
atomic.h
[PATCH] mutex subsystem, add atomic_xchg() to all arches
19 years ago
auxvec.h
[PATCH] auxiliary vector cleanups
20 years ago
bitops.h
[PATCH] include/asm-*/bitops.h: fix more "~0UL >> size" typos
19 years ago
bootinfo.h
Linux-2.6.12-rc2
20 years ago
bug.h
Linux-2.6.12-rc2
20 years ago
bugs.h
Linux-2.6.12-rc2
20 years ago
byteorder.h
Linux-2.6.12-rc2
20 years ago
cache.h
Linux-2.6.12-rc2
20 years ago
cachectl.h
Linux-2.6.12-rc2
20 years ago
cacheflush.h
Linux-2.6.12-rc2
20 years ago
checksum.h
Linux-2.6.12-rc2
20 years ago
cputime.h
Linux-2.6.12-rc2
20 years ago
current.h
Linux-2.6.12-rc2
20 years ago
dbg.h
Linux-2.6.12-rc2
20 years ago
delay.h
Linux-2.6.12-rc2
20 years ago
div64.h
Linux-2.6.12-rc2
20 years ago
dma-mapping.h
Linux-2.6.12-rc2
20 years ago
dma.h
Linux-2.6.12-rc2
20 years ago
elf.h
Linux-2.6.12-rc2
20 years ago
emergency-restart.h
[PATCH] Add emergency_restart()
20 years ago
errno.h
Linux-2.6.12-rc2
20 years ago
fcntl.h
[PATCH] Clean up struct flock64 definitions
20 years ago
flat.h
Linux-2.6.12-rc2
20 years ago
fpu.h
Linux-2.6.12-rc2
20 years ago
futex.h
[PATCH] consolidate asm/futex.h
19 years ago
gpio.h
Linux-2.6.12-rc2
20 years ago
hardirq.h
Linux-2.6.12-rc2
20 years ago
hw_irq.h
Linux-2.6.12-rc2
20 years ago
ide.h
Linux-2.6.12-rc2
20 years ago
io.h
Linux-2.6.12-rc2
20 years ago
ioctl.h
[PATCH] Generic ioctl.h
19 years ago
ioctls.h
Linux-2.6.12-rc2
20 years ago
ipc.h
Linux-2.6.12-rc2
20 years ago
ipcbuf.h
Linux-2.6.12-rc2
20 years ago
irq.h
[PATCH] m68knommu: remove enable_irq_nosync()
19 years ago
keyboard.h
Linux-2.6.12-rc2
20 years ago
kmap_types.h
[PATCH] h8300 build error fix
20 years ago
linkage.h
Linux-2.6.12-rc2
20 years ago
local.h
Linux-2.6.12-rc2
20 years ago
mc146818rtc.h
Linux-2.6.12-rc2
20 years ago
md.h
Linux-2.6.12-rc2
20 years ago
mman.h
[PATCH] add asm-generic/mman.h
19 years ago
mmu.h
Linux-2.6.12-rc2
20 years ago
mmu_context.h
Linux-2.6.12-rc2
20 years ago
module.h
Linux-2.6.12-rc2
20 years ago
msgbuf.h
Linux-2.6.12-rc2
20 years ago
mutex.h
[PATCH] mutex subsystem, add default include/asm-*/mutex.h files
19 years ago
namei.h
Linux-2.6.12-rc2
20 years ago
page.h
[PATCH] include/asm-h8300/page.h: remove unused KTHREAD_SIZE #define
19 years ago
page_offset.h
Linux-2.6.12-rc2
20 years ago
param.h
Linux-2.6.12-rc2
20 years ago
pci.h
[ACPI] PNPACPI vs sound IRQ
20 years ago
percpu.h
Linux-2.6.12-rc2
20 years ago
pgalloc.h
Linux-2.6.12-rc2
20 years ago
pgtable.h
[PATCH] feature removal of io_remap_page_range()
20 years ago
poll.h
[PATCH] POLLRDHUP/EPOLLRDHUP handling for half-closed devices notifications
19 years ago
posix_types.h
Linux-2.6.12-rc2
20 years ago
processor.h
Linux-2.6.12-rc2
20 years ago
ptrace.h
Linux-2.6.12-rc2
20 years ago
regs267x.h
Linux-2.6.12-rc2
20 years ago
regs306x.h
Linux-2.6.12-rc2
20 years ago
resource.h
Linux-2.6.12-rc2
20 years ago
scatterlist.h
Linux-2.6.12-rc2
20 years ago
sections.h
Linux-2.6.12-rc2
20 years ago
segment.h
Linux-2.6.12-rc2
20 years ago
semaphore-helper.h
Linux-2.6.12-rc2
20 years ago
semaphore.h
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
20 years ago
sembuf.h
Linux-2.6.12-rc2
20 years ago
setup.h
Linux-2.6.12-rc2
20 years ago
sh_bios.h
Linux-2.6.12-rc2
20 years ago
shm.h
Linux-2.6.12-rc2
20 years ago
shmbuf.h
Linux-2.6.12-rc2
20 years ago
shmparam.h
Linux-2.6.12-rc2
20 years ago
sigcontext.h
Linux-2.6.12-rc2
20 years ago
siginfo.h
Linux-2.6.12-rc2
20 years ago
signal.h
[PATCH] asm/signal.h unification
20 years ago
smp.h
Linux-2.6.12-rc2
20 years ago
socket.h
[NET]: Introduce SO_{SND,RCV}BUFFORCE socket options
20 years ago
sockios.h
Linux-2.6.12-rc2
20 years ago
spinlock.h
Linux-2.6.12-rc2
20 years ago
stat.h
Linux-2.6.12-rc2
20 years ago
statfs.h
Linux-2.6.12-rc2
20 years ago
string.h
Linux-2.6.12-rc2
20 years ago
system.h
Linux-2.6.12-rc2
20 years ago
target_time.h
Linux-2.6.12-rc2
20 years ago
termbits.h
Linux-2.6.12-rc2
20 years ago
termios.h
Linux-2.6.12-rc2
20 years ago
thread_info.h
[PATCH] death of get_thread_info/put_thread_info
19 years ago
timex.h
Linux-2.6.12-rc2
20 years ago
tlb.h
Linux-2.6.12-rc2
20 years ago
tlbflush.h
Linux-2.6.12-rc2
20 years ago
topology.h
Linux-2.6.12-rc2
20 years ago
traps.h
Linux-2.6.12-rc2
20 years ago
types.h
[PATCH] sab: consolidate kmem_bufctl_t
20 years ago
uaccess.h
[PATCH] remove verify_area(): remove verify_area() from various uaccess.h headers
20 years ago
ucontext.h
Linux-2.6.12-rc2
20 years ago
unaligned.h
Linux-2.6.12-rc2
20 years ago
unistd.h
[PATCH] unify sys_ptrace prototype
20 years ago
user.h
Linux-2.6.12-rc2
20 years ago
virtconvert.h
Linux-2.6.12-rc2
20 years ago