diff options
author | John Baldwin <jhb@FreeBSD.org> | 2000-12-15 20:08:20 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2000-12-15 20:08:20 +0000 |
commit | ffc831da27e74b74fe9509010ef90ea1167ea7b5 (patch) | |
tree | 47d2e7976f295de50540389786189b7f9a090667 /sys/kern/kern_kthread.c | |
parent | 4979e034c123cd65bba1002858155ba694fd5b44 (diff) | |
download | src-ffc831da27e74b74fe9509010ef90ea1167ea7b5.tar.gz src-ffc831da27e74b74fe9509010ef90ea1167ea7b5.zip |
Stick the kthread API in a kthread_* namespace, and the specialized kproc
functions in a kproc_* namespace.
Reviewed by: -arch
Notes
Notes:
svn path=/head/; revision=70063
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 bc97c559290b..6d0146a225f4 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); } } |