Lines Matching refs:length
184 int length; member
238 static int pidlist_uniq(pid_t *list, int length) in pidlist_uniq() argument
246 if (length == 0 || length == 1) in pidlist_uniq()
247 return length; in pidlist_uniq()
249 for (src = 1; src < length; src++) { in pidlist_uniq()
253 if (src == length) in pidlist_uniq()
331 int length; in pidlist_array_load() local
345 length = cgroup_task_count(cgrp); in pidlist_array_load()
346 array = kvmalloc_array(length, sizeof(pid_t), GFP_KERNEL); in pidlist_array_load()
352 if (unlikely(n == length)) in pidlist_array_load()
363 length = n; in pidlist_array_load()
365 sort(array, length, sizeof(pid_t), cmppid, NULL); in pidlist_array_load()
366 length = pidlist_uniq(array, length); in pidlist_array_load()
377 l->length = length; in pidlist_array_load()
427 int end = l->length; in cgroup_pidlist_start()
441 if (index >= l->length) in cgroup_pidlist_start()
467 pid_t *end = l->list + l->length; in cgroup_pidlist_next()