[RFC PATCH v1.2 0/2] mm/damon/stat: add kdamond_pid parameter

SeongJae Park
2026-04-16T00:21:59Z

DAMON_STAT doesn't provide the pid of its kdamond, unlike DAMON_RECLAIM
and DAMON_LRU_SORT. This makes user-space management of DAMON_STAT
unnecessarily complicated. Provide the information via a new parameter,
namely kdamond_pid, and document it.

Changes from RFC v1.1
- rfc v1.1: https://lore.kernel.org/20260414235912.98174-1-sj@kernel.org
- Close the parentheses of error handling block.
Changes from RFC
- rfc: https://lore.kernel.org/20260414053742.90296-1-sj@kernel.org
- Fix damon_kdamond_pid() failure handling.

SeongJae Park (2):
mm/damon/stat: add a parameter for reading kdamond pid
Docs/admin-guide/mm/damon/stat: document kdamond_pid parameter

Documentation/admin-guide/mm/damon/stat.rst | 7 +++++++
mm/damon/stat.c | 18 ++++++++++++++++++
2 files changed, 25 insertions(+)

base-commit: bf44f59d29186d80db01e4124a8ab23b3b235b32
--
2.47.3