PERFORCE change 100376 for review

Chris Jones cdjones at FreeBSD.org
Sat Jul 1 03:06:26 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=100376

Change 100376 by cdjones at 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 */
 


More information about the p4-projects mailing list