Lines Matching refs:strlen
300 retval = strncmp(comm_prefix, buffer, strlen(comm_prefix)); in procfs_is_workload_pid()
324 if (strlen(comm_prefix) >= MAX_PATH) { in set_comm_sched_attr()
419 if (strlen(arg) < 4) in parse_prio()
751 if (strlen(start) >= sizeof_self_cg) in get_self_cgroup()
781 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; in set_pid_cgroup()
794 retval = get_self_cgroup(&cgroup_path[strlen(cgroup_path)], in set_pid_cgroup()
795 sizeof(cgroup_path) - strlen(cgroup_path)); in set_pid_cgroup()
801 snprintf(&cgroup_path[strlen(cgroup_path)], in set_pid_cgroup()
802 sizeof(cgroup_path) - strlen(cgroup_path), "%s/", cgroup); in set_pid_cgroup()
815 retval = write(cg_fd, pid_str, strlen(pid_str)); in set_pid_cgroup()
839 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; in set_comm_cgroup()
846 if (strlen(comm_prefix) >= MAX_PATH) { in set_comm_cgroup()
859 retval = get_self_cgroup(&cgroup_path[strlen(cgroup_path)], in set_comm_cgroup()
860 sizeof(cgroup_path) - strlen(cgroup_path)); in set_comm_cgroup()
866 snprintf(&cgroup_path[strlen(cgroup_path)], in set_comm_cgroup()
867 sizeof(cgroup_path) - strlen(cgroup_path), "%s/", cgroup); in set_comm_cgroup()
890 retval = write(cg_fd, proc_entry->d_name, strlen(proc_entry->d_name)); in set_comm_cgroup()