summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe/rf_threadstuff.h
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2002-10-02 21:48:00 +0000
committeroster <oster@NetBSD.org>2002-10-02 21:48:00 +0000
commit9fbf5b5d27eb086ae86cf93fe3faf9abe73e2948 (patch)
tree31fa2635c7afb7aa447f0b939f8fb266c6f09387 /sys/dev/raidframe/rf_threadstuff.h
parent47ae4d5c59a7343119e819faef7c03d7f129d501 (diff)
Create a thread creation macro that make it easier to name the DAG process.
Use it to have the DAGExecutionThread have a better name for each RAID process ('raid0', 'raid1', etc., vs. just 'raid', 'raid', etc.)
Diffstat (limited to 'sys/dev/raidframe/rf_threadstuff.h')
-rw-r--r--sys/dev/raidframe/rf_threadstuff.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/raidframe/rf_threadstuff.h b/sys/dev/raidframe/rf_threadstuff.h
index 15445948cc9..75b2bfe36b1 100644
--- a/sys/dev/raidframe/rf_threadstuff.h
+++ b/sys/dev/raidframe/rf_threadstuff.h
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_threadstuff.h,v 1.12 2002/08/08 02:54:30 oster Exp $ */
+/* $NetBSD: rf_threadstuff.h,v 1.13 2002/10/02 21:48:00 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -106,6 +106,10 @@ typedef void *RF_ThreadArg_t;
kthread_create1((void (*)(void *))(_func_), (void *)(_arg_), \
(struct proc **)&(_handle_), _name_)
+#define RF_CREATE_ENGINE_THREAD(_handle_, _func_, _arg_, _fmt_, _fmt_arg_) \
+ kthread_create1((void (*)(void *))(_func_), (void *)(_arg_), \
+ (struct proc **)&(_handle_), _fmt_, _fmt_arg_)
+
struct RF_ThreadGroup_s {
int created;
int running;