Skip to content
Commit 0e67db2f authored by Tejun Heo's avatar Tejun Heo
Browse files

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: default avatarTejun Heo <tj@kernel.org>
Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: default avatarAcked-by: Zefan Li <lizefan@huawei.com>
parent a1d82aff
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment