diff options
author | Ed Cashin <ecashin@coraid.com> | 2012-12-18 01:03:26 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-18 02:15:23 +0100 |
commit | 662a889608dfabbb1b4954b172a6872a25dc8f90 (patch) | |
tree | b6de7178528700592e91af5649f0a34e2b4d9e59 /drivers/block/aoe/aoechr.c | |
parent | Documentation/sparse.txt: document context annotations for lock checking (diff) | |
download | linux-662a889608dfabbb1b4954b172a6872a25dc8f90.tar.xz linux-662a889608dfabbb1b4954b172a6872a25dc8f90.zip |
aoe: describe the behavior of the "err" character device
Signed-off-by: Ed Cashin <ecashin@coraid.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/block/aoe/aoechr.c')
-rw-r--r-- | 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 ed57a890c643..2bf6273e6779 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; |