Lines Matching refs:strlen
307 retval = strncmp(comm_prefix, buffer, strlen(comm_prefix)); in procfs_is_workload_pid()
331 if (strlen(comm_prefix) >= MAX_PATH) { in set_comm_sched_attr()
426 if (strlen(arg) < 4) in parse_prio()
611 if (strlen(start) >= sizeof_self_cg) in get_self_cgroup()
641 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; in set_pid_cgroup()
654 retval = get_self_cgroup(&cgroup_path[strlen(cgroup_path)], in set_pid_cgroup()
655 sizeof(cgroup_path) - strlen(cgroup_path)); in set_pid_cgroup()
661 snprintf(&cgroup_path[strlen(cgroup_path)], in set_pid_cgroup()
662 sizeof(cgroup_path) - strlen(cgroup_path), "%s/", cgroup); in set_pid_cgroup()
675 retval = write(cg_fd, pid_str, strlen(pid_str)); in set_pid_cgroup()
699 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; in set_comm_cgroup()
706 if (strlen(comm_prefix) >= MAX_PATH) { in set_comm_cgroup()
719 retval = get_self_cgroup(&cgroup_path[strlen(cgroup_path)], in set_comm_cgroup()
720 sizeof(cgroup_path) - strlen(cgroup_path)); in set_comm_cgroup()
726 snprintf(&cgroup_path[strlen(cgroup_path)], in set_comm_cgroup()
727 sizeof(cgroup_path) - strlen(cgroup_path), "%s/", cgroup); in set_comm_cgroup()
750 retval = write(cg_fd, proc_entry->d_name, strlen(proc_entry->d_name)); in set_comm_cgroup()