commit | c3c073f808b22dfae15ef8412b6f7b998644139a | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Tue Aug 21 22:32:06 2012 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Wed Sep 26 21:09:59 2012 -0400 |
tree | 3369bcbe414738d90e6ccfe257f6ce3e72f6a5ae | |
parent | ad47bd7252bf402fe7dba92f5240b5ed16832ae7 [diff] |
new helper: iterate_fd() iterates through the opened files in given descriptor table, calling a supplied function; we stop once non-zero is returned. Callback gets struct file *, descriptor number and const void * argument passed to iterator. It is called with files->file_lock held, so it is not allowed to block. tty_io, netprio_cgroup and selinux flush_unauthorized_files() converted to its use. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>