diff options
author | jhb <jhb@FreeBSD.org> | 2000-12-15 20:08:20 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2000-12-15 20:08:20 +0000 |
commit | cdfe59aac6cf43a9d742f76d7486a953d0f0d060 (patch) | |
tree | 06b0e88d25c888d3a7e1bfbb5ca35206bdfdea5c /sys/kern/kern_kthread.c | |
parent | 2a689b0e2f30be293d2361771dc52afdc7924495 (diff) | |
download | FreeBSD-src-cdfe59aac6cf43a9d742f76d7486a953d0f0d060.zip FreeBSD-src-cdfe59aac6cf43a9d742f76d7486a953d0f0d060.tar.gz |
Stick the kthread API in a kthread_* namespace, and the specialized kproc
functions in a kproc_* namespace.
Reviewed by: -arch
Diffstat (limited to 'sys/kern/kern_kthread.c')
-rw-r--r-- | sys/kern/kern_kthread.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_kthread.c b/sys/kern/kern_kthread.c index bc97c55..6d0146a 100644 --- a/sys/kern/kern_kthread.c +++ b/sys/kern/kern_kthread.c @@ -122,7 +122,7 @@ kthread_exit(int ecode) * Participation is voluntary. */ int -suspend_kproc(struct proc *p, int timo) +kthread_suspend(struct proc *p, int timo) { /* * Make sure this is indeed a system process and we can safely @@ -131,11 +131,11 @@ suspend_kproc(struct proc *p, int timo) if ((p->p_flag & P_SYSTEM) == 0) return (EINVAL); SIGADDSET(p->p_siglist, SIGSTOP); - return tsleep((caddr_t)&p->p_siglist, PPAUSE, "suspkp", timo); + return tsleep((caddr_t)&p->p_siglist, PPAUSE, "suspkt", timo); } int -resume_kproc(struct proc *p) +kthread_resume(struct proc *p) { /* * Make sure this is indeed a system process and we can safely @@ -149,10 +149,10 @@ resume_kproc(struct proc *p) } void -kproc_suspend_loop(struct proc *p) +kthread_suspend_check(struct proc *p) { while (SIGISMEMBER(p->p_siglist, SIGSTOP)) { wakeup((caddr_t)&p->p_siglist); - tsleep((caddr_t)&p->p_siglist, PPAUSE, "kpsusp", 0); + tsleep((caddr_t)&p->p_siglist, PPAUSE, "ktsusp", 0); } } |