Lines Matching refs:MNT_NAME
46 #define MNT_NAME "memory" macro
79 SAFE_MKDIR(MNT_NAME, 0700); in setup()
80 if (mount("memory", MNT_NAME, "cgroup", 0, "memory") == -1) { in setup()
84 SAFE_MKDIR(MNT_NAME"/"GROUP_NAME, 0700); in setup()
87 check_path(MNT_NAME"/"GROUP_NAME"/memory.limit_in_bytes"); in setup()
88 check_path(MNT_NAME"/"GROUP_NAME"/memory.swappiness"); in setup()
89 check_path(MNT_NAME"/"GROUP_NAME"/tasks"); in setup()
92 SAFE_FILE_PRINTF(MNT_NAME"/"GROUP_NAME"/memory.limit_in_bytes", "%ld\n", in setup()
94 SAFE_FILE_PRINTF(MNT_NAME"/"GROUP_NAME"/memory.swappiness", "60"); in setup()
95 SAFE_FILE_PRINTF(MNT_NAME"/"GROUP_NAME"/tasks", "%d\n", getpid()); in setup()
100 if (!access(MNT_NAME"/tasks", F_OK)) { in cleanup()
101 SAFE_FILE_PRINTF(MNT_NAME"/tasks", "%d\n", getpid()); in cleanup()
102 SAFE_RMDIR(MNT_NAME"/"GROUP_NAME); in cleanup()
103 SAFE_UMOUNT(MNT_NAME); in cleanup()