Hello, I have a question about cgroup implementation: The /sys/fs/cgroup entry is created in kernel/cgroup.c: static struct kobject *cgroup_kobj; cgroup_init(void) { ... cgroup_kobj = kobject_create_and_add("cgroup", fs_kobj); if (!cgroup_kobj) { err = -ENOMEM; goto out; } } I wondered about this two points: 1) why is the /sys/fs/cgroup entry created at all? 2) why is this done as a sysfs entry. The cgroup_kobj is not used anywhere in this module apart from its creation above (and destroying if we later fail with register_filesystem() in this same method). I don't see anywhere usage of syfs API to create files underneath it. In fact, the entries beneath it are created by mkdir of admin or systemd code. so what's the point of it being a sysfs entry ? wouldn't simply mkdir be ok ? and why under /sys/fs? Since cgroups can be mounted by definition on every path, why this is needed? Regards, DavidS -- To unsubscribe from this list: send the line "unsubscribe cgroups" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html