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.
NeilBrown
4508a7a734
[PATCH] sysfs: Allow sysfs attribute files to be pollable
...
It works like this:
Open the file
Read all the contents.
Call poll requesting POLLERR or POLLPRI (so select/exceptfds works)
When poll returns,
close the file and go to top of loop.
or lseek to start of file and go back to the 'read'.
Events are signaled by an object manager calling
sysfs_notify(kobj, dir, attr);
If the dir is non-NULL, it is used to find a subdirectory which
contains the attribute (presumably created by sysfs_create_group).
This has a cost of one int per attribute, one wait_queuehead per kobject,
one int per open file.
The name "sysfs_notify" may be confused with the inotify
functionality. Maybe it would be nice to support inotify for sysfs
attributes as well?
This patch also uses sysfs_notify to allow /sys/block/md*/md/sync_action
to be pollable
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
19 years ago
..
reed_solomon
[PATCH] sem2mutex: kernel/
19 years ago
zlib_deflate
[PATCH] lib/zlib*: cleanups
19 years ago
zlib_inflate
[PATCH] lib/zlib*: cleanups
19 years ago
.gitignore
Add some basic .gitignore files
20 years ago
Kconfig
[PATCH] lib/crc16: added crc16 algorithm.
20 years ago
Kconfig.debug
[PARISC] Remove obsolete CONFIG_DEBUG_IOREMAP
19 years ago
Makefile
[PATCH] bitops: generic hweight{64,32,16,8}()
19 years ago
bitmap.c
[PATCH] bitops: hweight() related cleanup
19 years ago
bust_spinlocks.c
Linux-2.6.12-rc2
20 years ago
cmdline.c
Linux-2.6.12-rc2
20 years ago
cpumask.c
[PATCH] cpumask: uninline any_online_cpu()
19 years ago
crc-ccitt.c
Linux-2.6.12-rc2
20 years ago
crc16.c
[PATCH] lib/crc16: added crc16 algorithm.
20 years ago
crc32.c
[PATCH] crc32.c typo fix
20 years ago
crc32defs.h
Linux-2.6.12-rc2
20 years ago
ctype.c
Linux-2.6.12-rc2
20 years ago
dec_and_lock.c
[PATCH] atomic: dec_and_lock use atomic primitives
19 years ago
div64.c
Linux-2.6.12-rc2
20 years ago
dump_stack.c
Linux-2.6.12-rc2
20 years ago
errno.c
Linux-2.6.12-rc2
20 years ago
extable.c
[PATCH] powerpc: trivial: modify comments to refer to new location of files
19 years ago
find_next_bit.c
[PATCH] bitops: generic ext2_{set,clear,test,find_first_zero,find_next_zero}_bit()
19 years ago
gen_crc32table.c
Linux-2.6.12-rc2
20 years ago
genalloc.c
[PATCH] fix broken lib/genalloc.c
19 years ago
halfmd4.c
Linux-2.6.12-rc2
20 years ago
hweight.c
[PATCH] bitops: hweight() speedup
19 years ago
idr.c
[PATCH] Whitespace and CodingStyle cleanup for lib/idr.c
20 years ago
inflate.c
[PATCH] Update in-kernel zlib routines
20 years ago
int_sqrt.c
[PATCH] lib: Fix bug in int_sqrt() for 64 bit longs
19 years ago
iomap.c
[PATCH] add Big Endian variants of ioread/iowrite
20 years ago
iomap_copy.c
[PATCH] iomap_copy fallout (m68k)
19 years ago
kernel_lock.c
[PATCH] spinlock consolidation
20 years ago
klist.c
[PATCH] klist: Fix broken kref counting in find functions
19 years ago
kobject.c
[PATCH] sysfs: Allow sysfs attribute files to be pollable
19 years ago
kobject_uevent.c
[PATCH] kobject: fix build error if CONFIG_SYSFS=n
19 years ago
kref.c
[PATCH] kref: avoid an atomic operation in kref_put()
19 years ago
libcrc32c.c
Linux-2.6.12-rc2
20 years ago
parser.c
Linux-2.6.12-rc2
20 years ago
prio_tree.c
Linux-2.6.12-rc2
20 years ago
radix-tree.c
[PATCH] radix-tree documentation cleanups
19 years ago
rbtree.c
Linux-2.6.12-rc2
20 years ago
rwsem-spinlock.c
[PATCH] use smp_mb/wmb/rmb where possible
20 years ago
rwsem.c
[PATCH] use smp_mb/wmb/rmb where possible
20 years ago
semaphore-sleepers.c
[PATCH] unify x86/x86-64 semaphore code
20 years ago
sha1.c
[PATCH] lib/sha1.c: fix sparse warning
20 years ago
smp_processor_id.c
[PATCH] fix missing includes
20 years ago
sort.c
[PATCH] fix missing includes
20 years ago
spinlock_debug.c
[PATCH] Fix spinlock debugging delays to not time out too early
19 years ago
string.c
[PATCH] Silence a const vs non-const warning
19 years ago
swiotlb.c
BUG_ON() Conversion in lib/swiotlb.c
19 years ago
textsearch.c
[PATCH] gfp_t: lib/*
20 years ago
ts_bm.c
[TEXTSEARCH]: Fix broken good shift array calculation in Boyer-Moore
19 years ago
ts_fsm.c
[PATCH] gfp flags annotations - part 1
20 years ago
ts_kmp.c
[PATCH] gfp flags annotations - part 1
20 years ago
vsprintf.c
[PATCH] fix missing includes
20 years ago