mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
For Lite2: proc LIST changes.
Reviewed by: davidg & bde
This commit is contained in:
parent
2592172e85
commit
1b67ec6de9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14531
@ -59,7 +59,7 @@
|
|||||||
* any improvements or extensions that they make and grant Carnegie the
|
* any improvements or extensions that they make and grant Carnegie the
|
||||||
* rights to redistribute these changes.
|
* 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"
|
#include "opt_ddb.h"
|
||||||
@ -446,7 +446,7 @@ scheduler(dummy)
|
|||||||
|
|
||||||
pp = NULL;
|
pp = NULL;
|
||||||
ppri = INT_MIN;
|
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 &&
|
if (p->p_stat == SRUN &&
|
||||||
(p->p_flag & (P_INMEM | P_SWAPPING)) == 0) {
|
(p->p_flag & (P_INMEM | P_SWAPPING)) == 0) {
|
||||||
int mempri;
|
int mempri;
|
||||||
@ -505,7 +505,7 @@ swapout_procs()
|
|||||||
outp = outp2 = NULL;
|
outp = outp2 = NULL;
|
||||||
outpri = outpri2 = INT_MIN;
|
outpri = outpri2 = INT_MIN;
|
||||||
retry:
|
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))
|
if (!swappable(p))
|
||||||
continue;
|
continue;
|
||||||
switch (p->p_stat) {
|
switch (p->p_stat) {
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)vm_meter.c 8.4 (Berkeley) 1/4/94
|
* @(#)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>
|
#include <sys/param.h>
|
||||||
@ -78,7 +78,7 @@ loadav(struct loadavg *avg)
|
|||||||
register int i, nrun;
|
register int i, nrun;
|
||||||
register struct proc *p;
|
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) {
|
switch (p->p_stat) {
|
||||||
case SSLEEP:
|
case SSLEEP:
|
||||||
if (p->p_priority > PZERO || p->p_slptime != 0)
|
if (p->p_priority > PZERO || p->p_slptime != 0)
|
||||||
@ -143,7 +143,7 @@ vmtotal SYSCTL_HANDLER_ARGS
|
|||||||
/*
|
/*
|
||||||
* Calculate process statistics.
|
* 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)
|
if (p->p_flag & P_SYSTEM)
|
||||||
continue;
|
continue;
|
||||||
switch (p->p_stat) {
|
switch (p->p_stat) {
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
* any improvements or extensions that they make and grant Carnegie the
|
* any improvements or extensions that they make and grant Carnegie the
|
||||||
* rights to redistribute these changes.
|
* 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;
|
vm_object_t object;
|
||||||
{
|
{
|
||||||
struct proc *p;
|
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)) */)
|
if( !p->p_vmspace /* || (p->p_flag & (P_SYSTEM|P_WEXIT)) */)
|
||||||
continue;
|
continue;
|
||||||
/*
|
/*
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
* any improvements or extensions that they make and grant Carnegie the
|
* any improvements or extensions that they make and grant Carnegie the
|
||||||
* rights to redistribute these changes.
|
* 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 @@ vm_pageout_scan()
|
|||||||
((cnt.v_free_count + cnt.v_cache_count) < cnt.v_free_min)) {
|
((cnt.v_free_count + cnt.v_cache_count) < cnt.v_free_min)) {
|
||||||
bigproc = NULL;
|
bigproc = NULL;
|
||||||
bigsize = 0;
|
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
|
* if this is a system process, skip it
|
||||||
*/
|
*/
|
||||||
@ -929,7 +929,7 @@ vm_daemon()
|
|||||||
* process is swapped out -- deactivate pages
|
* 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;
|
int overage;
|
||||||
quad_t limit;
|
quad_t limit;
|
||||||
vm_offset_t size;
|
vm_offset_t size;
|
||||||
|
Loading…
Reference in New Issue
Block a user