Home
last modified time | relevance | path

Searched refs:thread_array (Results 1 – 3 of 3) sorted by relevance

/xnu-12377.61.12/tools/tests/affinity/
H A Dtags.c85 thread_act_t *thread_array; in main() local
122 ret = task_threads(port, &thread_array, &num_threads); in main()
129 i, thread_array[i], thread_tag_get(thread_array[i])); in main()
135 tag = thread_tag_get(thread_array[i]); in main()
137 i, thread_array[i], tag); in main()
147 thread_tag_set(thread_array[i], tag); in main()
/xnu-12377.61.12/osfmk/tests/
H A Dpmap_tests.c1004 thread_t *thread_array = kalloc_type(thread_t, num_surts, Z_WAITOK | Z_ZERO); in test_surt() local
1005 if (!thread_array) { in test_surt()
1018 &thread_array[i]); in test_surt()
1035 thread_deallocate(thread_array[i]); in test_surt()
1043 &thread_array[i]); in test_surt()
1060 thread_deallocate(thread_array[i]); in test_surt()
1064 kfree_type(thread_t, num_surts, thread_array); in test_surt()
/xnu-12377.61.12/osfmk/kern/
H A Dtask.c2936 thread_t *thread_array; in task_duplicate_map_and_threads() local
3027 thread_array = kalloc_type(thread_t, active_thread_count, Z_WAITOK); in task_duplicate_map_and_threads()
3042 thread_array[array_count++] = thread; in task_duplicate_map_and_threads()
3054 if (thread_array[i] == self) { in task_duplicate_map_and_threads()
3064 kr = thread_dup2(thread_array[i], new_thread); in task_duplicate_map_and_threads()
3074 get_bsdthread_info(thread_array[i])); in task_duplicate_map_and_threads()
3075 new_thread->thread_tag = thread_array[i]->thread_tag & in task_duplicate_map_and_threads()
3077 thread_copy_resource_info(new_thread, thread_array[i]); in task_duplicate_map_and_threads()
3091 thread_deallocate(thread_array[i]); in task_duplicate_map_and_threads()
3093 kfree_type(thread_t, active_thread_count, thread_array); in task_duplicate_map_and_threads()