cgroup2_mount#

Run commands and agent-written programs inside an operating-system boundary. See the guide.

zett_agent.sandbox.resources.cgroup2_mount(mountinfo_path=None)[源代码]#

Return the cgroup v2 mount point, or None when the machine has no unified hierarchy.

Linux only. The mount is found in /proc/self/mountinfo as a cgroup2 entry; a machine on the old split hierarchy reports nothing here.

参数:

mountinfo_path (Path | None)

返回类型:

Path | None