Lines Matching refs:affinity

29 #include <kern/affinity.h>
36 * - affinity namespace:
37 * shared by a task family, this controls affinity tag lookup and
38 * allocation; it anchors all affinity sets in one namespace
39 * - affinity set:
40 * anchors all threads with membership of this affinity set
41 * and which share an affinity tag in the owning namespace.
44 * - The task lock protects the creation of an affinity namespace.
45 * - The affinity namespace mutex protects the inheritance of a namespace
48 * - The thread mutex protects a thread's affinity set membership, but in
50 * field (representng the active affinity set) is read by the scheduler.
95 * Return the affinity tag for a thread.
114 * Place a thread in an affinity set identified by a tag.
156 * Remove thread from current affinity set
167 * Add thread to existing affinity set
173 * Use the new affinity set, add this thread
258 * Return affinity tag info (number, min, max) for the task.
300 * Set the child into the parent's affinity set.
301 * Note the affinity space is shared.
330 * Remove thread from any affinity set.
351 * Called from execve() to cancel any current affinity - a new image implies
352 * the calling thread terminates any expressed or inherited affinity.
362 * Create an empty affinity namespace data structure.
382 * Destroy the given empty affinity namespace data structure.
395 * Create an empty affinity set data structure
419 * Destroy the given empty affinity set data structure
432 * Add a thread to an affinity set.
452 * Remove a thread from an affinity set returning the set if now empty.
486 * Find an affinity set in the parent task with the given affinity tag.
507 * affinity_set_place() assigns an affinity set to a suitable processor_set.
526 * Scan the affinity sets calculating the number of sets
540 * a cpu affinity chosen randomly per namespace:
560 /* Add the new affinity set to the group */
565 DBG("affinity_set_place(%p,%p) selected affinity %u pset %p\n",