mm/damon/sysfs-common.c

Source file repositories/reference/linux-study-clean/mm/damon/sysfs-common.c

File Facts

System
Linux kernel
Corpus path
mm/damon/sysfs-common.c
Extension
.c
Size
3262 bytes
Lines
148
Domain
Core OS
Bucket
Memory Management
Inferred role
Core OS: implementation source
Status
source implementation candidate

Why This File Exists

Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.

Dependency Surface

Detected Declarations

Annotated Snippet

if (damon_sysfs_memcg_path_eq(memcg, path, memcg_path)) {
			*id = mem_cgroup_id(memcg);
			found = true;
			mem_cgroup_iter_break(NULL, memcg);
			break;
		}
	}

	kfree(path);
	return found ? 0 : -EINVAL;
}

Annotation

Implementation Notes