From: Ed Cashin Date: Sat, 3 Nov 2012 00:43:08 +0000 (+1100) Subject: aoe: describe the behavior of the "err" character device X-Git-Tag: next-20121108~1^2~12 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=33473e611fb2bc345e1311c1d99d49d1bd0be3c3;p=karo-tx-linux.git aoe: describe the behavior of the "err" character device Signed-off-by: Ed Cashin Signed-off-by: Andrew Morton --- 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;