Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 27689896 authored by Tejun Heo's avatar Tejun Heo Committed by Suren Baghdasaryan
Browse files

UPSTREAM: 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>

(cherry picked from commit 0e67db2f9fe91937e798e3d7d22c50a8438187e1)

Bug: 111308141
Test: modified lmkd to use PSI and tested using lmkd_unit_test

Change-Id: Id06e9d5c6da1280bcdd4dc86309dcfaf52b8f9a4
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
parent a8b846a4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment