diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-08-22 04:32:06 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-09-27 03:09:59 +0200 |
commit | c3c073f808b22dfae15ef8412b6f7b998644139a (patch) | |
tree | 3369bcbe414738d90e6ccfe257f6ce3e72f6a5ae /tools | |
parent | make expand_files() and alloc_fd() static (diff) | |
download | linux-c3c073f808b22dfae15ef8412b6f7b998644139a.tar.xz linux-c3c073f808b22dfae15ef8412b6f7b998644139a.zip |
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>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions