From: Ed Cashin Date: Tue, 18 Dec 2012 00:03:26 +0000 (-0800) Subject: aoe: describe the behavior of the "err" character device X-Git-Tag: v3.8-rc1~74^2~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=662a889608dfabbb1b4954b172a6872a25dc8f90;p=profile%2Fivi%2Fkernel-x86-ivi.git aoe: describe the behavior of the "err" character device Signed-off-by: Ed Cashin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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;