diff options
author | Tejun Heo <tj@kernel.org> | 2016-12-27 20:49:03 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-12-27 20:49:03 +0100 |
commit | 0e67db2f9fe91937e798e3d7d22c50a8438187e1 (patch) | |
tree | f89b0ef7b69fd5b48dcb76d6568e4963ebc19779 /Documentation | |
parent | kernfs: make kernfs_open_file->mmapped a bitfield (diff) | |
download | linux-0e67db2f9fe91937e798e3d7d22c50a8438187e1.tar.xz linux-0e67db2f9fe91937e798e3d7d22c50a8438187e1.zip |
kernfs: add kernfs_ops->open/release() callbacks
Add ->open/release() methods to kernfs_ops. ->open() is called when
the file is opened and ->release() when the file is either released or
severed. These callbacks can be used, for example, to manage
persistent caching objects over multiple seq_file iterations.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Acked-by: Zefan Li <lizefan@huawei.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions