Messages in this thread Patch in this message | | | From | "Ed L. Cashin" <> | Subject | [PATCH] aoe: document the behavior of /dev/etherd/err | Date | Wed, 26 Dec 2007 15:35:52 -0500 |
| |
Signed-off-by: Ed L. Cashin <ecashin@coraid.com> --- drivers/block/aoe/aoechr.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/block/aoe/aoechr.c b/drivers/block/aoe/aoechr.c index 2620073..871f284 100644 --- a/drivers/block/aoe/aoechr.c +++ b/drivers/block/aoe/aoechr.c @@ -33,6 +33,10 @@ struct ErrMsg { char *msg; }; +/* 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 semaphore emsgs_sema; -- 1.5.3.4
| |