]> 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>
Thu, 13 Oct 2011 06:50:00 +0000 (17:50 +1100)
commitb17be4b651da71a5b3edc0490d62655f4f177cd8
treec00c5d8801d06cd3732229ed9f706aaeb56380ea
parentb8088bc6c938a42764623ca8f26bcda986d33dfa
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