]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sysctl: add support for poll()
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Wed, 5 Oct 2011 00:43:57 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 12 Oct 2011 06:32:38 +0000 (17:32 +1100)
commit70b932563a9514b248cc71a29bd0907bf95b4a5e
tree129bf69c217ac9ad9f5b82aeef641a5e9c3b9f59
parenta2de34d3d956de16529990a0e5b3024dad8bd44e
sysctl: add support for poll()

Adding support for poll() in sysctl fs allows userspace to receive
notifications of changes in sysctl entries.  This adds a infrastructure to
allow files in sysctl fs to be pollable and implements it for hostname and
domainname.

Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Cc: Greg KH <gregkh@suse.de>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/proc_sysctl.c
include/linux/sysctl.h
include/linux/utsname.h
kernel/sys.c
kernel/utsname_sysctl.c