Lines Matching full:subsystem
8 # Find mountpoint to given subsystem
9 # get_cgroup_mountpoint SUBSYSTEM
13 local subsystem=$1
16 [ $# -eq 0 ] && tst_brk TBROK "get_cgroup_mountpoint: subsystem not defined"
18 mntpoint=$(grep cgroup /proc/mounts | grep -w $subsystem | awk '{ print $2 }')
25 # Check if given subsystem is supported and enabled
26 # is_cgroup_subsystem_available_and_enabled SUBSYSTEM
27 # RETURN: 0 if subsystem supported and enabled, otherwise 1
31 local subsystem=$1
33 [ $# -eq 0 ] && tst_brk TBROK "is_cgroup_subsystem_available_and_enabled: subsystem not defined"
35 val=$(grep -w $subsystem /proc/cgroups | awk '{ print $4 }')