sysfs, kernfs: add kernfs_ops->seq_{start|next|stop}()
authorTejun Heo <tj@kernel.org>
Thu, 28 Nov 2013 19:54:26 +0000 (14:54 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Nov 2013 01:48:14 +0000 (17:48 -0800)
commitd19b9846df64d8845be682b6318bd1aee246cf60
tree688842d196ae287bce080fe2e13ca00e796c8a06
parent2d0cfbec2a95c16818960fda1dfa815fd1a62070
sysfs, kernfs: add kernfs_ops->seq_{start|next|stop}()

kernfs_ops currently only supports single_open() behavior which is
pretty restrictive.  Add optional callbacks ->seq_{start|next|stop}()
which, when implemented, are invoked for seq_file traversal.  This
allows full seq_file functionality for kernfs users.  This currently
doesn't have any user and doesn't change any behavior.

v2: Refreshed on top of the updated "sysfs, kernfs: prepare read path
    for kernfs".

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/file.c
include/linux/kernfs.h