Date: Sat, 1 Jul 2006 02:48:36 GMT From: Chris Jones <cdjones@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 100376 for review Message-ID: <200607010248.k612maRJ015879@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100376 Change 100376 by cdjones@cdjones-impulse on 2006/07/01 02:47:46 Add to prison structure. Affected files ... .. //depot/projects/soc2006/cdjones_jail/src/sys/sys/jail.h#7 edit Differences ... ==== //depot/projects/soc2006/cdjones_jail/src/sys/sys/jail.h#7 (text+ko) ==== @@ -19,7 +19,8 @@ char *hostname; u_int32_t ip_number; unsigned int priority; -/* CJ TODO --- add reference to preferred scheduler, e.g. by name? */ +/* struct thread *scheduler; + CJ TODO --- add reference to preferred scheduler, e.g. by name? */ }; struct xprison { @@ -28,6 +29,8 @@ char pr_path[MAXPATHLEN]; char pr_host[MAXHOSTNAMELEN]; u_int32_t pr_ip; + unsigned int priority; + /* struct thread *scheduler; */ }; #define XPRISON_VERSION 1 @@ -67,6 +70,10 @@ * (d) set only during destruction of jail, no mutex needed */ #if defined(_KERNEL) || defined(_WANT_PRISON) + +#include <sys/proc.h> +/*struct proc; */ + struct prison { LIST_ENTRY(prison) pr_list; /* (a) all prisons */ int pr_id; /* (c) prison id */ @@ -80,7 +87,7 @@ struct task pr_task; /* (d) destroy task */ struct mtx pr_mtx; unsigned int pr_priority; /* (p) jail priority */ -/* CJ TODO scheduler reference. */ + struct proc *pr_scheduler; /* (c) scheduler pid */ }; #endif /* _KERNEL || _WANT_PRISON */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607010248.k612maRJ015879>