Lines Matching refs:strlen
302 retval = strncmp(comm_prefix, buffer, strlen(comm_prefix)); in procfs_is_workload_pid()
326 if (strlen(comm_prefix) >= MAX_PATH) { in set_comm_sched_attr()
421 if (strlen(arg) < 4) in parse_prio()
753 if (strlen(start) >= sizeof_self_cg) in get_self_cgroup()
783 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; in set_pid_cgroup()
796 retval = get_self_cgroup(&cgroup_path[strlen(cgroup_path)], in set_pid_cgroup()
797 sizeof(cgroup_path) - strlen(cgroup_path)); in set_pid_cgroup()
803 snprintf(&cgroup_path[strlen(cgroup_path)], in set_pid_cgroup()
804 sizeof(cgroup_path) - strlen(cgroup_path), "%s/", cgroup); in set_pid_cgroup()
817 retval = write(cg_fd, pid_str, strlen(pid_str)); in set_pid_cgroup()
841 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; in set_comm_cgroup()
848 if (strlen(comm_prefix) >= MAX_PATH) { in set_comm_cgroup()
861 retval = get_self_cgroup(&cgroup_path[strlen(cgroup_path)], in set_comm_cgroup()
862 sizeof(cgroup_path) - strlen(cgroup_path)); in set_comm_cgroup()
868 snprintf(&cgroup_path[strlen(cgroup_path)], in set_comm_cgroup()
869 sizeof(cgroup_path) - strlen(cgroup_path), "%s/", cgroup); in set_comm_cgroup()
892 retval = write(cg_fd, proc_entry->d_name, strlen(proc_entry->d_name)); in set_comm_cgroup()