[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <bee64f03a543aff4fa2869b4591b24dccc473f1b.1350331035.git.ecashin@coraid.com>
Date: Mon, 15 Oct 2012 18:40:43 -0700
From: Ed Cashin <ecashin@...aid.com>
To: akpm@...ux-foundation.org
Cc: ecashin@...aid.com, linux-kernel@...r.kernel.org
Subject: [PATCH 1/9] aoe: describe the behavior of the "err" character device
Signed-off-by: Ed Cashin <ecashin@...aid.com>
---
drivers/block/aoe/aoechr.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/drivers/block/aoe/aoechr.c b/drivers/block/aoe/aoechr.c
index ed57a89..2bf6273 100644
--- a/drivers/block/aoe/aoechr.c
+++ b/drivers/block/aoe/aoechr.c
@@ -39,6 +39,11 @@ struct ErrMsg {
};
static DEFINE_MUTEX(aoechr_mutex);
+
+/* A ring buffer of error messages, to be read through
+ * "/dev/etherd/err". When no messages are present,
+ * readers will block waiting for messages to appear.
+ */
static struct ErrMsg emsgs[NMSG];
static int emsgs_head_idx, emsgs_tail_idx;
static struct completion emsgs_comp;
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists