summaryrefslogtreecommitdiffstats
path: root/sys/sys/proc.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1994-08-28 16:53:35 +0000
committerbde <bde@FreeBSD.org>1994-08-28 16:53:35 +0000
commitd59fcde5ba8df9e7fdac738914758df851827a60 (patch)
treef4364ff96de9b368c0965a45c02bee86c63c39d2 /sys/sys/proc.h
parentec07274b9d8ae401e33a3b1f676778f3991dd9be (diff)
downloadFreeBSD-src-d59fcde5ba8df9e7fdac738914758df851827a60.zip
FreeBSD-src-d59fcde5ba8df9e7fdac738914758df851827a60.tar.gz
Reformat recent additions to the same style as the original.
Diffstat (limited to 'sys/sys/proc.h')
-rw-r--r--sys/sys/proc.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index a870f8d..18e01a3 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)proc.h 8.8 (Berkeley) 1/21/94
- * $Id: proc.h,v 1.5 1994/08/24 11:51:46 sos Exp $
+ * $Id: proc.h,v 1.6 1994/08/25 22:59:35 wollman Exp $
*/
#ifndef _SYS_PROC_H_
@@ -97,7 +97,7 @@ struct proc {
int p_flag; /* P_* flags. */
char p_stat; /* S* process status. */
- char p_lock; /* process lock count */
+ char p_lock; /* Process lock count. */
char p_pad1[2];
pid_t p_pid; /* Process identifier. */
@@ -135,8 +135,7 @@ struct proc {
struct vnode *p_textvp; /* Vnode of executable. */
- long p_spare[4]; /* pad to 256, avoid shifting eproc. */
-
+ long p_spare[4]; /* Pad to 256, avoid shifting eproc. */
/* End area that is zeroed on creation. */
#define p_endzero p_startcopy
@@ -155,7 +154,7 @@ struct proc {
struct pgrp *p_pgrp; /* Pointer to process group. */
- struct sysentvec *p_sysent; /* system call dispatch information */
+ struct sysentvec *p_sysent; /* System call dispatch information. */
/* End area that is copied on creation. */
#define p_endcopy p_thread
@@ -242,8 +241,8 @@ extern struct proc proc0; /* Process slot for swapper. */
extern int nprocs, maxproc; /* Current and max number of procs. */
extern int pidhashmask; /* In param.c. */
-extern volatile struct proc *allproc; /* List of active procs. */
-extern struct proc *zombproc; /* List of zombie procs. */
+extern volatile struct proc *allproc; /* List of active procs. */
+extern struct proc *zombproc; /* List of zombie procs. */
extern struct proc *initproc, *pageproc; /* Process slots for init, pager. */
#define NQS 32 /* 32 run queues. */
@@ -253,9 +252,9 @@ struct prochd {
struct proc *ph_rlink;
} qs[NQS];
+int chgproccnt __P((uid_t, int));
struct proc *pfind __P((pid_t)); /* Find process by id. */
struct pgrp *pgfind __P((pid_t)); /* Find process group by id. */
-
void mi_switch __P((void));
void resetpriority __P((struct proc *));
void setrunnable __P((struct proc *));
@@ -265,7 +264,6 @@ int tsleep __P((void *chan, int pri, char *wmesg, int timo));
void unsleep __P((struct proc *));
void wakeup __P((void *chan));
-extern int chgproccnt(uid_t, int);
-
#endif /* KERNEL */
+
#endif /* !_SYS_PROC_H_ */
OpenPOWER on IntegriCloud