Lines Matching refs:strlen
301 retval = strncmp(comm_prefix, buffer, strlen(comm_prefix)); in procfs_is_workload_pid()
325 if (strlen(comm_prefix) >= MAX_PATH) { in set_comm_sched_attr()
420 if (strlen(arg) < 4) in parse_prio()
605 if (strlen(start) >= sizeof_self_cg) in get_self_cgroup()
635 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; in set_pid_cgroup()
648 retval = get_self_cgroup(&cgroup_path[strlen(cgroup_path)], in set_pid_cgroup()
649 sizeof(cgroup_path) - strlen(cgroup_path)); in set_pid_cgroup()
655 snprintf(&cgroup_path[strlen(cgroup_path)], in set_pid_cgroup()
656 sizeof(cgroup_path) - strlen(cgroup_path), "%s/", cgroup); in set_pid_cgroup()
669 retval = write(cg_fd, pid_str, strlen(pid_str)); in set_pid_cgroup()
693 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; in set_comm_cgroup()
700 if (strlen(comm_prefix) >= MAX_PATH) { in set_comm_cgroup()
713 retval = get_self_cgroup(&cgroup_path[strlen(cgroup_path)], in set_comm_cgroup()
714 sizeof(cgroup_path) - strlen(cgroup_path)); in set_comm_cgroup()
720 snprintf(&cgroup_path[strlen(cgroup_path)], in set_comm_cgroup()
721 sizeof(cgroup_path) - strlen(cgroup_path), "%s/", cgroup); in set_comm_cgroup()
744 retval = write(cg_fd, proc_entry->d_name, strlen(proc_entry->d_name)); in set_comm_cgroup()