summaryrefslogtreecommitdiffstats
path: root/sys/contrib/pf
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2007-10-20 23:23:23 +0000
committerjulian <julian@FreeBSD.org>2007-10-20 23:23:23 +0000
commit51d643caa6efc11780104da450ee36a818170f81 (patch)
tree705ce8283c36af96cf048c799a9c02ee91af62db /sys/contrib/pf
parent830ad96079c0199720ca93a683f2a4450afac014 (diff)
downloadFreeBSD-src-51d643caa6efc11780104da450ee36a818170f81.zip
FreeBSD-src-51d643caa6efc11780104da450ee36a818170f81.tar.gz
Rename the kthread_xxx (e.g. kthread_create()) calls
to kproc_xxx as they actually make whole processes. Thos makes way for us to add REAL kthread_create() and friends that actually make theads. it turns out that most of these calls actually end up being moved back to the thread version when it's added. but we need to make this cosmetic change first. I'd LOVE to do this rename in 7.0 so that we can eventually MFC the new kthread_xxx() calls.
Diffstat (limited to 'sys/contrib/pf')
-rw-r--r--sys/contrib/pf/net/pf.c2
-rw-r--r--sys/contrib/pf/net/pf_ioctl.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/contrib/pf/net/pf.c b/sys/contrib/pf/net/pf.c
index 4d1cd35..0c996ab 100644
--- a/sys/contrib/pf/net/pf.c
+++ b/sys/contrib/pf/net/pf.c
@@ -988,7 +988,7 @@ pf_purge_thread(void *v)
sx_sunlock(&pf_consistency_lock);
PF_UNLOCK();
wakeup(pf_purge_thread);
- kthread_exit(0);
+ kproc_exit(0);
}
#endif
s = splsoftnet();
diff --git a/sys/contrib/pf/net/pf_ioctl.c b/sys/contrib/pf/net/pf_ioctl.c
index 6c5d2a1..b87b45b 100644
--- a/sys/contrib/pf/net/pf_ioctl.c
+++ b/sys/contrib/pf/net/pf_ioctl.c
@@ -386,7 +386,7 @@ pfattach(void)
/* XXX do our best to avoid a conflict */
pf_status.hostid = arc4random();
- if (kthread_create(pf_purge_thread, NULL, NULL, 0, 0, "pfpurge"))
+ if (kproc_create(pf_purge_thread, NULL, NULL, 0, 0, "pfpurge"))
return (ENXIO);
return (error);
@@ -464,13 +464,13 @@ pfattach(int num)
pf_status.hostid = arc4random();
/* require process context to purge states, so perform in a thread */
- kthread_create_deferred(pf_thread_create, NULL);
+ kproc_create_deferred(pf_thread_create, NULL);
}
void
pf_thread_create(void *v)
{
- if (kthread_create(pf_purge_thread, NULL, NULL, "pfpurge"))
+ if (kproc_create(pf_purge_thread, NULL, NULL, "pfpurge"))
panic("pfpurge thread");
}
OpenPOWER on IntegriCloud