Lines Matching defs:kdamond
372 * (&damon_ctx.kdamond) calls @init and @prepare_access_checks before starting
395 * @apply_scheme is called from @kdamond when a region for user provided
401 * @cleanup is called from @kdamond just before its termination.
431 * The monitoring thread (&damon_ctx.kdamond) calls @before_start and
497 * @kdamond: Kernel thread who does the monitoring.
498 * @kdamond_lock: Mutex for the synchronizations with @kdamond.
501 * created. The pointer to the thread is stored in @kdamond.
507 * The thread sets @kdamond to NULL when it terminates. Therefore, users can
508 * know whether the monitoring is ongoing or terminated by reading @kdamond.
509 * Reads and writes to @kdamond from outside of the monitoring thread must
512 * Note that the monitoring thread protects only @kdamond via @kdamond_lock.
541 struct task_struct *kdamond;