Lines Matching refs:damon_ctx
286 struct damon_ctx;
338 void (*init)(struct damon_ctx *context);
339 void (*update)(struct damon_ctx *context);
340 void (*prepare_access_checks)(struct damon_ctx *context);
341 unsigned int (*check_accesses)(struct damon_ctx *context);
342 void (*reset_aggregated)(struct damon_ctx *context);
343 int (*get_scheme_score)(struct damon_ctx *context,
346 unsigned long (*apply_scheme)(struct damon_ctx *context,
350 void (*cleanup)(struct damon_ctx *context);
384 int (*before_start)(struct damon_ctx *context);
385 int (*after_wmarks_check)(struct damon_ctx *context);
386 int (*after_sampling)(struct damon_ctx *context);
387 int (*after_aggregation)(struct damon_ctx *context);
388 void (*before_terminate)(struct damon_ctx *context);
449 struct damon_ctx { struct
537 void damon_add_scheme(struct damon_ctx *ctx, struct damos *s);
541 void damon_add_target(struct damon_ctx *ctx, struct damon_target *t);
542 bool damon_targets_empty(struct damon_ctx *ctx);
547 struct damon_ctx *damon_new_ctx(void);
548 void damon_destroy_ctx(struct damon_ctx *ctx);
549 int damon_set_attrs(struct damon_ctx *ctx, struct damon_attrs *attrs);
550 void damon_set_schemes(struct damon_ctx *ctx,
555 int damon_select_ops(struct damon_ctx *ctx, enum damon_ops_id id);
557 static inline bool damon_target_has_pid(const struct damon_ctx *ctx) in damon_target_has_pid()
563 int damon_start(struct damon_ctx **ctxs, int nr_ctxs, bool exclusive);
564 int damon_stop(struct damon_ctx **ctxs, int nr_ctxs);