Lines Matching defs:to

4  * The contents of this file are subject to the terms of the
24 * Use is subject to license terms.
76 * Make sure that there is at least one address to translate and
113 * address, 1st bit validity of response to first
145 * to be copied out later
152 * have to be copied out later
195 * corresponding to the input
204 * page corresponding to the
218 * page corresponding to the
235 * to the input virtual address,
300 * Free lgroup affinities for thread and set to NULL
343 * Check to see whether caller has permission to set
484 * Thread bound to CPU
585 * Check to see whether caller has permission to set affinity for
660 * Advance pointer to next buffer
678 * need to be held in that order to protect target thread's pset, process,
681 * protect calls to lgrp_move_thread() and lgrp_choose() from pset changes.
823 * each thread in process now to avoid holding
824 * any locks. Allocate an array to hold a buffer
837 * Get process again since dropped locks to allocate
932 * NOTE: Caller needs to check for change in pset ID
956 * Check to see whether caller has permission to set affinity for
1052 * Return latency between "from" and "to" lgroups
1057 * specific, so platform gets to decide its value. It would be nice if the
1058 * number was at least proportional to make comparisons more meaningful though.
1061 lgrp_latency(lgrp_id_t from, lgrp_id_t to)
1071 if (from < 0 || to < 0)
1074 if (from > lgrp_alloc_max || to > lgrp_alloc_max)
1078 to_lgrp = lgrp_table[to];
1087 if (from == to) {
1176 * - lgrp_info_t points into array and specifies how many CPUs belong to
1188 * - contains latency from each lgroup to each of other lgroups
1199 * needed to hold snapshot
1228 * Have up-to-date snapshot, so check to see whether caller is 32-bit
1229 * program and need to return size of 32-bit snapshot now.
1239 * rounding up size of each object to allow for alignment
1272 * Check whether snapshot is up-to-date
1305 * rounding up size of each object to allow for alignment
1355 * (including pointers to tables of lgroup info, CPU IDs, and parents
1361 * XXX For now, liblgrp only needs to know whether the hierarchy
1491 lgrp_t *to;
1493 to = lgrp_table[j];
1494 if (!LGRP_EXISTS(to))
1497 to->lgrp_id);
1507 * Check to see whether caller is 32-bit program and need to return
1509 * May not have been able to do this earlier if snapshot was out of
1518 * rounding up size of each object to allow for alignment
1552 * Copy snapshot into given user buffer, fix up any pointers in buffer to point
1554 * needed to hold snapshot
1587 * User needs to try getting size of buffer again
1646 * Copyout magic number (ie. pointer to beginning of buffer)
1652 * Fix up pointers in user buffer to point into user buffer
1714 * NOTE: This must be done before changing the pointers to
1715 * point into user space since we need to dereference
1725 * Fix up pointers to parents, children, resources, and
1740 * Fix up pointer to CPU IDs
1752 * Copy lgroup info and latency table with pointers fixed up to point
1753 * into user buffer out to user buffer now
1771 * Make 32-bit copy of snapshot, fix up any pointers in buffer to point
1773 * given user buffer, and return size of buffer needed to hold snapshot
1813 * rounding up size of each object to allow for alignment
1847 * User needs to try getting size of buffer again
1856 * Make 32-bit copy of snapshot, fix up pointers to point into user
1878 * Make temporary lgroup latency table of pointers for kernel to use
1879 * to fill in rows of table with latencies from each lgroup
1929 * to point into user's buffer instead of kernel's
1985 * Fix up pointer to latency buffer