ipmi: Add a sysfs count of total outstanding messages for an interface
authorCorey Minyard <cminyard@mvista.com>
Tue, 29 Mar 2022 18:13:34 +0000 (13:13 -0500)
committerCorey Minyard <cminyard@mvista.com>
Thu, 12 May 2022 15:00:03 +0000 (10:00 -0500)
commitd5d91586beda89b204dd1956a27e3ed2309ea995
tree4ab569252d0d00f61a19ea626ddbb486560c0456
parentf60231885fa986fcd5503f4eb9ef3e53a2002b12
ipmi: Add a sysfs count of total outstanding messages for an interface

Go through each user and add its message count to a total and print the
total.

It would be nice to have a per-user file, but there's no user sysfs
entity at this point to hang it off of.  Probably not worth the effort.

Based on work by Chen Guanqiao <chen.chenchacha@foxmail.com>

Cc: Chen Guanqiao <chen.chenchacha@foxmail.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_msghandler.c