[PATCH] samples/damon/prcl: add module parameter description for target_pid

Enze Li <[email protected]>
Newsgroups dev.linux.lists.damon
Message-ID <[email protected]>
Document 'target_pid' via MODULE_PARM_DESC so its meaning is visible
through kernel command line usage and sysfs interface.

Signed-off-by: Enze Li <[email protected]>
---
 samples/damon/prcl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/samples/damon/prcl.c b/samples/damon/prcl.c
index 842099bd6228..2592fc53e9d7 100644
--- a/samples/damon/prcl.c
+++ b/samples/damon/prcl.c
@@ -18,6 +18,7 @@
 
 static int target_pid __read_mostly;
 module_param(target_pid, int, 0600);
+MODULE_PARM_DESC(target_pid, "Target PID of monitored process");
 
 static int damon_sample_prcl_enable_store(
 		const char *val, const struct kernel_param *kp);
-- 
2.54.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.