summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorhsu <hsu@FreeBSD.org>1996-03-11 06:11:43 +0000
committerhsu <hsu@FreeBSD.org>1996-03-11 06:11:43 +0000
commit0bb5cd954d512f19f81d910bf1199752a64d4de0 (patch)
tree583168ecffcc4146c31ee471fd066cc559e4afe1 /sys/vm
parent0f91f4d404deae598ffc432bd320d2f30bf1cbf9 (diff)
downloadFreeBSD-src-0bb5cd954d512f19f81d910bf1199752a64d4de0.zip
FreeBSD-src-0bb5cd954d512f19f81d910bf1199752a64d4de0.tar.gz
For Lite2: proc LIST changes.
Reviewed by: davidg & bde
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_glue.c6
-rw-r--r--sys/vm/vm_meter.c6
-rw-r--r--sys/vm/vm_object.c4
-rw-r--r--sys/vm/vm_pageout.c6
4 files changed, 11 insertions, 11 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c
index b52b05d..999c356 100644
--- a/sys/vm/vm_glue.c
+++ b/sys/vm/vm_glue.c
@@ -59,7 +59,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_glue.c,v 1.41 1996/03/02 02:54:19 dyson Exp $
+ * $Id: vm_glue.c,v 1.42 1996/03/09 06:57:53 dyson Exp $
*/
#include "opt_ddb.h"
@@ -446,7 +446,7 @@ loop:
pp = NULL;
ppri = INT_MIN;
- for (p = (struct proc *) allproc; p != NULL; p = p->p_next) {
+ for (p = allproc.lh_first; p != 0; p = p->p_list.le_next) {
if (p->p_stat == SRUN &&
(p->p_flag & (P_INMEM | P_SWAPPING)) == 0) {
int mempri;
@@ -505,7 +505,7 @@ swapout_procs()
outp = outp2 = NULL;
outpri = outpri2 = INT_MIN;
retry:
- for (p = (struct proc *) allproc; p != NULL; p = p->p_next) {
+ for (p = allproc.lh_first; p != 0; p = p->p_list.le_next) {
if (!swappable(p))
continue;
switch (p->p_stat) {
diff --git a/sys/vm/vm_meter.c b/sys/vm/vm_meter.c
index 5a2f4db3..ade41bc 100644
--- a/sys/vm/vm_meter.c
+++ b/sys/vm/vm_meter.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)vm_meter.c 8.4 (Berkeley) 1/4/94
- * $Id: vm_meter.c,v 1.12 1995/12/10 14:52:10 bde Exp $
+ * $Id: vm_meter.c,v 1.13 1995/12/14 09:55:02 phk Exp $
*/
#include <sys/param.h>
@@ -78,7 +78,7 @@ loadav(struct loadavg *avg)
register int i, nrun;
register struct proc *p;
- for (nrun = 0, p = (struct proc *) allproc; p != NULL; p = p->p_next) {
+ for (nrun = 0, p = allproc.lh_first; p != 0; p = p->p_list.le_next) {
switch (p->p_stat) {
case SSLEEP:
if (p->p_priority > PZERO || p->p_slptime != 0)
@@ -143,7 +143,7 @@ vmtotal SYSCTL_HANDLER_ARGS
/*
* Calculate process statistics.
*/
- for (p = (struct proc *) allproc; p != NULL; p = p->p_next) {
+ for (p = allproc.lh_first; p != 0; p = p->p_list.le_next) {
if (p->p_flag & P_SYSTEM)
continue;
switch (p->p_stat) {
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index 381b6c5..df60eab 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_object.c,v 1.63 1996/01/19 04:00:02 dyson Exp $
+ * $Id: vm_object.c,v 1.64 1996/03/02 02:54:22 dyson Exp $
*/
/*
@@ -1344,7 +1344,7 @@ vm_object_in_map( object)
vm_object_t object;
{
struct proc *p;
- for (p = (struct proc *) allproc; p != NULL; p = p->p_next) {
+ for (p = allproc.lh_first; p != 0; p = p->p_list.le_next) {
if( !p->p_vmspace /* || (p->p_flag & (P_SYSTEM|P_WEXIT)) */)
continue;
/*
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
index a835875..6f44421 100644
--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -65,7 +65,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_pageout.c,v 1.66 1996/02/22 10:57:37 davidg Exp $
+ * $Id: vm_pageout.c,v 1.67 1996/03/09 06:53:27 dyson Exp $
*/
/*
@@ -794,7 +794,7 @@ rescan1:
((cnt.v_free_count + cnt.v_cache_count) < cnt.v_free_min)) {
bigproc = NULL;
bigsize = 0;
- for (p = (struct proc *) allproc; p != NULL; p = p->p_next) {
+ for (p = allproc.lh_first; p != 0; p = p->p_list.le_next) {
/*
* if this is a system process, skip it
*/
@@ -929,7 +929,7 @@ vm_daemon()
* process is swapped out -- deactivate pages
*/
- for (p = (struct proc *) allproc; p != NULL; p = p->p_next) {
+ for (p = allproc.lh_first; p != 0; p = p->p_list.le_next) {
int overage;
quad_t limit;
vm_offset_t size;
OpenPOWER on IntegriCloud