Lines Matching refs:lpl_target
1831 * Add a resource named by lpl_leaf to rset of lpl_target
1845 lpl_rset_add(lpl_t *lpl_target, lpl_t *lpl_leaf)
1851 for (i = 0; i < lpl_target->lpl_nrset; i++) {
1852 if (lpl_target->lpl_rset[i] == lpl_leaf) {
1856 if (lpl_target->lpl_rset[i]->lpl_lgrpid >
1864 i = lpl_target->lpl_nrset++;
1873 lpl_target->lpl_rset[i + 1] = lpl_target->lpl_rset[i];
1874 lpl_target->lpl_id2rset[lpl_target->lpl_rset[i]->lpl_lgrpid] =
1878 lpl_target->lpl_rset[entry_slot] = lpl_leaf;
1879 lpl_target->lpl_id2rset[lpl_leaf->lpl_lgrpid] = entry_slot;
1881 lpl_target->lpl_ncpu += lpl_leaf->lpl_ncpu;
1913 * Delete resource lpl_leaf from rset of lpl_target, assuming it's there.
1920 lpl_rset_del(lpl_t *lpl_target, lpl_t *lpl_leaf)
1925 if (lpl_target->lpl_nrset == 0)
1929 for (i = 0; i < lpl_target->lpl_nrset; i++) {
1930 if (lpl_target->lpl_rset[i] == lpl_leaf)
1935 if (lpl_target->lpl_rset[i] != lpl_leaf)
1939 lpl_target->lpl_rset[lpl_target->lpl_nrset--] = NULL;
1940 lpl_target->lpl_id2rset[lpl_leaf->lpl_lgrpid] = -1;
1941 lpl_target->lpl_ncpu--;
1943 lpl_target->lpl_rset[i] = lpl_target->lpl_rset[i + 1];
1947 if ((leaf = lpl_target->lpl_rset[i]) != NULL) {
1948 lpl_target->lpl_id2rset[leaf->lpl_lgrpid] = i;
1950 } while (i++ < lpl_target->lpl_nrset);
1959 lpl_rset_contains(lpl_t *lpl_target, lpl_t *lpl_leaf)
1963 for (i = 0; i < lpl_target->lpl_nrset; i++) {
1964 if (lpl_target->lpl_rset[i] == lpl_leaf)