reclaim.c
Includes Linux kernel module headerRegisters Linux kernel module init
SHA-2568ae6c8f1513d01434fc40595bf267ea75a1d7e49811d08ec00f2eeb76e4f39c2
MaleculeO(Er)H(Os)
Evidence
⋯7 lines
8#define pr_fmt(fmt) "damon-reclaim: " fmt
9
10#include <linux/damon.h>
11#include <linux/kstrtox.h>
12#include <linux/module.h>
13
14#include "modules-common.h"
15
16#ifdef MODULE_PARAM_PREFIX
17#undef MODULE_PARAM_PREFIX
18#endif
19#define MODULE_PARAM_PREFIX "damon_r …
22:34… M.
23 *
24 * You can enable DAMON_RCLAIM by setting the value of this parameter as ``Y``.
25 * Setting it as ``N`` disables DAMON_RECLAIM. Note that DAMON_RECLAIM could
26 * do no real monitoring and reclamation due to the watermarks-based activation
27 * condition. Refer to below descriptions for the watermarks parameter for
28 * this.
29 */
⋯4 lines
211:54… addr_unit, 1);
212
213 if (!damon_reclaim_mon_attrs.aggr_interval) {
214 err = -EINVAL;
215 goto out;
216 }
⋯12 lines
320:34… t_addr_unit);
321
322 if (err)
323 return err;
324 if (!input_addr_unit)
325 return -EINVAL;
326
327 addr_unit = input_addr_unit;
⋯5 lines
⋯6 lines
398}
399
400module_init(damon_reclaim_init);