]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sysctl: add support for poll()
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Wed, 2 Nov 2011 20:39:22 +0000 (13:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 2 Nov 2011 23:07:02 +0000 (16:07 -0700)
commitf1ecf06854a66ee663f4d4cf029c78cd62a15e04
treecbe863057fa14b9390746db6d2b1812a2f874b48
parent088024b1deee206cd37eff980138e918837aabdb
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.

[akpm@linux-foundation.org: s/declare/define/ for definitions]
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/proc_sysctl.c
include/linux/sysctl.h
include/linux/utsname.h
kernel/sys.c
kernel/utsname_sysctl.c