]> 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>
Tue, 11 Oct 2011 08:44:18 +0000 (19:44 +1100)
commitd5d54ac08ee56212df9f0c51a6dac3952aa5b7ec
tree251b27b04907e83d09692dd4c6ea426af5eb5943
parentf3e5a76f7e271605236edb898cb9fd6e80821327
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