驅動程式 - Linux Device Driver(LDD) - 如何取得目前cgroup_path



參考資訊:
https://elixir.bootlin.com/linux/latest/source/include/linux/cgroup.h#L660

#include <linux/sched.h>
#include <linux/cgroup.h>

char buf[255]={0};

cgroup_path(task_cgroup(get_current(), memory_cgrp_id), buf, sizeof(buf));
printk("current cgroup_path:%s", buf);