Lines Matching refs:damon_ctx
337 struct damon_ctx;
389 void (*init)(struct damon_ctx *context);
390 void (*update)(struct damon_ctx *context);
391 void (*prepare_access_checks)(struct damon_ctx *context);
392 unsigned int (*check_accesses)(struct damon_ctx *context);
393 void (*reset_aggregated)(struct damon_ctx *context);
394 int (*get_scheme_score)(struct damon_ctx *context,
397 unsigned long (*apply_scheme)(struct damon_ctx *context,
401 void (*cleanup)(struct damon_ctx *context);
436 int (*before_start)(struct damon_ctx *context);
437 int (*after_wmarks_check)(struct damon_ctx *context);
438 int (*after_sampling)(struct damon_ctx *context);
439 int (*after_aggregation)(struct damon_ctx *context);
440 int (*before_damos_apply)(struct damon_ctx *context,
444 void (*before_terminate)(struct damon_ctx *context);
505 struct damon_ctx { struct
604 void damon_add_scheme(struct damon_ctx *ctx, struct damos *s);
608 void damon_add_target(struct damon_ctx *ctx, struct damon_target *t);
609 bool damon_targets_empty(struct damon_ctx *ctx);
614 struct damon_ctx *damon_new_ctx(void);
615 void damon_destroy_ctx(struct damon_ctx *ctx);
616 int damon_set_attrs(struct damon_ctx *ctx, struct damon_attrs *attrs);
617 void damon_set_schemes(struct damon_ctx *ctx,
622 int damon_select_ops(struct damon_ctx *ctx, enum damon_ops_id id);
624 static inline bool damon_target_has_pid(const struct damon_ctx *ctx) in damon_target_has_pid()
630 int damon_start(struct damon_ctx **ctxs, int nr_ctxs, bool exclusive);
631 int damon_stop(struct damon_ctx **ctxs, int nr_ctxs);