Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm/damon: document damon_call_control->dealloc_on_cancel repeat behavior

damon_call_control->dealloc_on_cancel works only when ->repeat is true.
But the behavior is not clearly documented. DAMON API callers can
understand the behavior only after reading kdamond_call() code. Document
the behavior on the kernel-doc comment of damon_call_control.

Link: https://lkml.kernel.org/r/20260117175256.82826-6-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

SeongJae Park and committed by
Andrew Morton
177c8a27 ebc4734a

+1 -1
+1 -1
include/linux/damon.h
··· 663 663 * @data: Data that will be passed to @fn. 664 664 * @repeat: Repeat invocations. 665 665 * @return_code: Return code from @fn invocation. 666 - * @dealloc_on_cancel: De-allocate when canceled. 666 + * @dealloc_on_cancel: If @repeat is true, de-allocate when canceled. 667 667 * 668 668 * Control damon_call(), which requests specific kdamond to invoke a given 669 669 * function. Refer to damon_call() for more details.