Lines Matching defs:jid
1004 int deadid, jid, jsys, len, level;
1058 error = vfs_copyopt(opts, "jid", &jid, sizeof(jid));
1060 jid = 0;
1418 if (cuflags == JAIL_CREATE && jid == 0 && name != NULL) {
1420 jid = strtoul(namelc != NULL ? namelc + 1 : name, &p, 10);
1422 jid = 0;
1432 if (jid != 0) {
1433 if (jid < 0) {
1435 vfs_opterror(opts, "negative jid");
1439 * See if a requested jid already exists. Keep track of
1443 if (inspr->pr_id < jid)
1445 if (inspr->pr_id > jid)
1464 vfs_opterror(opts, "jail %d already exists", jid);
1477 vfs_opterror(opts, "jail %d not found", jid);
1483 * This has different semantics for creates and updates keyed by jid
1536 * Create, or update(jid): name must
1551 * Update: name must exist if no jid is specified.
1552 * As with the jid case, the jail must be currently
1566 /* Update: must provide a jid or name. */
1612 if (jid == 0 && (jid = get_next_prid(&inspr)) == 0) {
1627 pr->pr_id = jid;
1817 /* Give a default name of the jid. Also allow the name to be
1818 * explicitly the jid - but not any other number, and only in
1822 snprintf(namelc = numbuf, sizeof(numbuf), "%d", jid);
1823 else if ((strtoul(namelc, &p, 10) != jid ||
1827 "name cannot be numeric (unless it is the jid)");
2139 printf("Warning jail jid=%d: mountd/nfsd requires a separate"
2193 int jid, maxid;
2195 jid = lastprid % JAIL_MAX + 1;
2197 TAILQ_LAST(&allprison, prisonlist)->pr_id < jid) {
2207 * with the proposed jid, then ending with it.
2211 if (inspr->pr_id < jid)
2213 if (inspr->pr_id > jid) {
2218 if (++jid > maxid) {
2228 jid = 1;
2240 lastprid = jid;
2241 return (jid);
2330 int drflags, error, errmsg_len, errmsg_pos, i, jid, len, pos;
2345 * Find the prison specified by one of: lastjid, jid, name.
2349 error = vfs_copyopt(opts, "lastjid", &jid, sizeof(jid));
2352 if (pr->pr_id > jid &&
2361 vfs_opterror(opts, "no jail after %d", jid);
2366 error = vfs_copyopt(opts, "jid", &jid, sizeof(jid));
2368 if (jid != 0) {
2369 pr = prison_find_child(mypr, jid);
2376 jid);
2382 vfs_opterror(opts, "jail %d not found", jid);
2420 error = vfs_setopt(opts, "jid", &pr->pr_id, sizeof(pr->pr_id));
2611 * int jid;
2625 pr = prison_find_child(td->td_ucred->cr_prison, uap->jid);
2642 * int jid;
2656 pr = prison_find_child(td->td_ucred->cr_prison, uap->jid);
2885 ("Trying to hold dead prison %p (jid=%d).", pr, pr->pr_id));
2913 ("Trying to free dead prison %p (jid=%d).",
2931 ("Trying to free dead prison %p (jid=%d).",
2935 ("prison_free_not_last freed last ref on prison %p (jid=%d).",
2958 ("Cannot add a process to a non-alive prison (jid=%d)", pr->pr_id));
2979 ("Trying to kill a process in a dead prison (jid=%d)", pr->pr_id));
2990 ("Redundant last reference in prison_proc_free (jid=%d)",
3005 ("Trying to free dead prison %p (jid=%d).",
3009 ("prison_proc_free_not_last freed last uref on prison %p (jid=%d).",
3151 ("prison_deref PD_DEUREF on a dead prison (jid=%d)",
3189 ("prison_deref PD_DEREF on a dead prison (jid=%d)",
3201 "but still has %d urefs (jid=%d)",
3291 ("Trying to kill dead prison %p (jid=%d).",
4586 SYSCTL_JAIL_PARAM(, jid, CTLTYPE_INT | CTLFLAG_RDTUN, "I", "Jail ID");
5024 db_printf(" jid = %d\n", pr->pr_id);