Lines Matching refs:damon_ctx

353 struct damon_ctx;
405 void (*init)(struct damon_ctx *context);
406 void (*update)(struct damon_ctx *context);
407 void (*prepare_access_checks)(struct damon_ctx *context);
408 unsigned int (*check_accesses)(struct damon_ctx *context);
409 void (*reset_aggregated)(struct damon_ctx *context);
410 int (*get_scheme_score)(struct damon_ctx *context,
413 unsigned long (*apply_scheme)(struct damon_ctx *context,
417 void (*cleanup)(struct damon_ctx *context);
452 int (*before_start)(struct damon_ctx *context);
453 int (*after_wmarks_check)(struct damon_ctx *context);
454 int (*after_sampling)(struct damon_ctx *context);
455 int (*after_aggregation)(struct damon_ctx *context);
456 int (*before_damos_apply)(struct damon_ctx *context,
460 void (*before_terminate)(struct damon_ctx *context);
521 struct damon_ctx { struct
620 void damon_add_scheme(struct damon_ctx *ctx, struct damos *s);
624 void damon_add_target(struct damon_ctx *ctx, struct damon_target *t);
625 bool damon_targets_empty(struct damon_ctx *ctx);
630 struct damon_ctx *damon_new_ctx(void);
631 void damon_destroy_ctx(struct damon_ctx *ctx);
632 int damon_set_attrs(struct damon_ctx *ctx, struct damon_attrs *attrs);
633 void damon_set_schemes(struct damon_ctx *ctx,
638 int damon_select_ops(struct damon_ctx *ctx, enum damon_ops_id id);
640 static inline bool damon_target_has_pid(const struct damon_ctx *ctx) in damon_target_has_pid()
646 int damon_start(struct damon_ctx **ctxs, int nr_ctxs, bool exclusive);
647 int damon_stop(struct damon_ctx **ctxs, int nr_ctxs);