Home
last modified time | relevance | path

Searched refs:targets_arr (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/mm/damon/
H A Dsysfs.c292 struct damon_sysfs_target **targets_arr; member
303 struct damon_sysfs_target **targets_arr = targets->targets_arr; in damon_sysfs_targets_rm_dirs() local
307 damon_sysfs_target_rm_dirs(targets_arr[i]); in damon_sysfs_targets_rm_dirs()
308 kobject_put(&targets_arr[i]->kobj); in damon_sysfs_targets_rm_dirs()
311 kfree(targets_arr); in damon_sysfs_targets_rm_dirs()
312 targets->targets_arr = NULL; in damon_sysfs_targets_rm_dirs()
325 targets_arr = kmalloc_array(nr_targets, sizeof(*targets_arr), in damon_sysfs_targets_add_dirs()
327 if (!targets_arr) in damon_sysfs_targets_add_dirs()
329 targets->targets_arr = targets_arr; in damon_sysfs_targets_add_dirs()
348 targets_arr[i] = target; in damon_sysfs_targets_add_dirs()
[all …]