Lines Matching defs:array
58 #include <linux/vmalloc.h> /* TODO: replace with more sophisticated array */
67 * Generate an array of cgroup subsystem pointers. At boot time, this is
69 * registered after that. The mutable section of this array is protected by
1063 * with cgroup_mutex held to protect the subsys[] array. This function takes
2623 /* is the size difference enough that we should re-allocate the array? */
2720 pid_t *array;
2722 int pid, n = 0; /* used for populating the array */
2734 array = pidlist_allocate(length);
2735 if (!array)
2737 /* now, populate the array */
2748 array[n++] = pid;
2753 sort(array, length, sizeof(pid_t), cmppid, NULL);
2755 length = pidlist_uniq(&array, length);
2758 pidlist_free(array);
2761 /* store array, freeing old if necessary - lock already held */
2763 l->list = array;
2829 * in the cgroup->l->list array.
2859 /* If we're off the end of the array, we're done */
2880 * Advance to the next pid in the array. If this goes off the
2956 * (tasks or procs). Prepare an array of the process/thread IDs of whoever's
2970 /* have the array populated */
3418 * We won't need to lock the subsys array, because the subsystems
3682 /* find the first empty slot in the array */
4075 * subsystems, and the builtin section of the subsys array is
4076 * immutable, so we don't need to lock the subsys array here.
4149 * the subsys array