Lines Matching defs:damon_ctx

942 	struct damon_ctx *damon_ctx;
977 static bool damon_sysfs_ctx_running(struct damon_ctx *ctx)
1058 struct damon_ctx *ctx = kdamond->damon_ctx;
1071 static int damon_sysfs_set_attrs(struct damon_ctx *ctx,
1087 static void damon_sysfs_destroy_targets(struct damon_ctx *ctx)
1130 struct damon_ctx *ctx)
1172 struct damon_ctx *ctx,
1194 static int damon_sysfs_set_targets(struct damon_ctx *ctx,
1230 static void damon_sysfs_before_terminate(struct damon_ctx *ctx)
1239 if (kdamond && ctx == kdamond->damon_ctx &&
1270 struct damon_ctx *ctx = kdamond->damon_ctx;
1282 struct damon_ctx *ctx = kdamond->damon_ctx;
1294 struct damon_ctx *ctx = kdamond->damon_ctx;
1304 struct damon_ctx *ctx = kdamond->damon_ctx;
1315 return kdamond->damon_ctx &&
1316 damon_sysfs_ctx_running(kdamond->damon_ctx);
1319 static int damon_sysfs_apply_inputs(struct damon_ctx *ctx,
1350 return damon_sysfs_apply_inputs(kdamond->damon_ctx,
1361 static int damon_sysfs_cmd_request_callback(struct damon_ctx *c)
1372 if (!kdamond || kdamond->damon_ctx != c)
1412 static struct damon_ctx *damon_sysfs_build_ctx(
1415 struct damon_ctx *ctx = damon_new_ctx();
1435 struct damon_ctx *ctx;
1446 if (kdamond->damon_ctx)
1447 damon_destroy_ctx(kdamond->damon_ctx);
1448 kdamond->damon_ctx = NULL;
1458 kdamond->damon_ctx = ctx;
1464 if (!kdamond->damon_ctx)
1466 return damon_stop(&kdamond->damon_ctx, 1);
1469 * DAMON, we free kdamond->damon_ctx in next
1560 struct damon_ctx *ctx;
1565 ctx = kdamond->damon_ctx;
1583 if (kdamond->damon_ctx)
1584 damon_destroy_ctx(kdamond->damon_ctx);