static char *task_group_path(struct task_group *tg) { if (autogroup_path(tg, group_path, PATH_MAX)) return group_path; return cgroup_path(tg->css.cgroup, group_path, PATH_MAX); }
static void task_group_path(struct task_group *tg, char *buf, int buflen) { /* may be NULL if the underlying cgroup isn't fully-created yet */ if (!tg->css.cgroup) { if (!autogroup_path(tg, buf, buflen)) buf[0] = '\0'; return; } cgroup_path(tg->css.cgroup, buf, buflen); }
static char *task_group_path(struct task_group *tg) { if (autogroup_path(tg, group_path, PATH_MAX)) return group_path; if (!tg->css.cgroup) { group_path[0] = '\0'; return group_path; } cgroup_path(tg->css.cgroup, group_path, PATH_MAX); return group_path; }
static char *task_group_path(struct task_group *tg) { if (autogroup_path(tg, group_path, PATH_MAX)) return group_path; /* * May be NULL if the underlying cgroup isn't fully-created yet */ if (!tg->css.cgroup) { group_path[0] = '\0'; return group_path; } cgroup_path(tg->css.cgroup, group_path, PATH_MAX); return group_path; }
static char *task_group_path(struct task_group *tg) { if (autogroup_path(tg, group_path, PATH_MAX)) return group_path; /* * May be NULL if the underlying cgroup isn't fully-created yet */ if (!tg->css.cgroup) { group_path[0] = '\0'; return group_path; } /*[Arima JimCheng 20131225] Rollback workitem 32175 ++*/ // << FerryWu, 2013/12/17, fix coverity 103078 cgroup_path(tg->css.cgroup, group_path, PATH_MAX) ; // group_path[0] = '\0'; // >> FerryWu, 2013/12/17, fix coverity 103078 /*[Arima JimCheng 20131225] Rollback workitem 32175 --*/ return group_path; }