Lines Matching refs:tag
37 * shared by a task family, this controls affinity tag lookup and
41 * and which share an affinity tag in the owning namespace.
72 static affinity_set_t affinity_set_find(affinity_space_t aspc, uint32_t tag);
95 * Return the affinity tag for a thread.
101 uint32_t tag;
104 tag = thread->affinity_set->aset_tag;
106 tag = THREAD_AFFINITY_TAG_NULL;
108 return tag;
114 * Place a thread in an affinity set identified by a tag.
118 thread_affinity_set(thread_t thread, uint32_t tag)
125 DBG("thread_affinity_set(%p,%u)\n", thread, tag);
159 thread, tag, aset);
163 if (tag != THREAD_AFFINITY_TAG_NULL) {
164 aset = affinity_set_find(aspc, tag);
170 thread, tag, aset);
188 thread, tag, aset);
189 aset->aset_tag = tag;
258 * Return affinity tag info (number, min, max) for the task.
474 * Find an affinity set in the parent task with the given affinity tag.
478 affinity_set_find(affinity_space_t space, uint32_t tag)
484 if (aset->aset_tag == tag) {
486 space, tag, aset);
490 DBG("affinity_set_find(%p,%u) not found\n", space, tag);