Lines Matching refs:id
101 * rather apply masks to its own threads via CPU_WHICH_TID and a -1 id
166 cpusetid_t id;
172 id = set->cs_id;
173 if (id != CPUSET_INVALID)
178 if (id != CPUSET_INVALID)
179 free_unr(cpuset_unr, id);
213 * Find a set based on an id. Returns it with a ref.
254 cpusetid_t id)
265 set->cs_id = id;
284 cpusetid_t id;
287 id = alloc_unr(cpuset_unr);
288 if (id == -1)
291 error = _cpuset_create(set, parent, mask, id);
294 free_unr(cpuset_unr, id);
399 cpuset_which(cpuwhich_t which, id_t id, struct proc **pp, struct thread **tdp,
412 if (id == -1) {
417 if ((p = pfind(id)) == NULL)
421 if (id == -1) {
427 td = tdfind(id, -1);
433 if (id == -1) {
438 set = cpuset_lookup(id, curthread);
446 /* Find `set' for prison with given id. */
450 pr = prison_find_child(curthread->td_ucred->cr_prison, id);
687 cpuset_setthread(lwpid_t id, cpuset_t *mask)
696 error = cpuset_which(CPU_WHICH_TID, id, &p, &td, &set);
857 id_t id;
875 error = cpuset_setproc(uap->id, set, NULL);
884 id_t id;
895 cpusetid_t id;
900 error = cpuset_which(uap->which, uap->id, &p, &ttd, &set);
928 id = set->cs_id;
931 error = copyout(&id, uap->setid, sizeof(id));
940 id_t id;
961 error = cpuset_which(uap->which, uap->id, &p, &ttd, &set);
1007 error = intr_getaffinity(uap->id, mask);
1030 id_t id;
1072 error = cpuset_which(uap->which, uap->id, &p, &ttd, &set);
1101 error = cpuset_setthread(uap->id, mask);
1104 error = cpuset_setproc(uap->id, NULL, mask);
1108 error = cpuset_which(uap->which, uap->id, &p,
1116 error = intr_setaffinity(uap->id, mask);
1156 db_printf("set=%p id=%-6u ref=%-6d flags=0x%04x parent id=%d\n",