]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/block/aoe/aoechr.c
aoe: describe the behavior of the "err" character device
[~shefty/rdma-dev.git] / drivers / block / aoe / aoechr.c
index ed57a890c6431ce882c84486481967c2103f1724..2bf6273e67791127a68c7b4a2e398ac5b64c10cb 100644 (file)
@@ -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;