mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
The opticsmon tool started out as a tool for monitoring the health of optical modules in directly attached PCI NICs. In the future however it will also monitor the health of other PCI devices. In particular in a first step it will monitor the health of directly attached NVMe devices. To reflect this broadening of its scope rename opticsmon to zpcimon. Add zpcimon.service and install it both under the new name and symlinked as opticsmon.service for backwards compatibility. Since users are expected to mostly just enable the service this keeps old instructions just working. Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
12 lines
303 B
C
12 lines
303 B
C
#pragma once
|
|
#include "optics_info.h"
|
|
|
|
struct ethtool_nl_ctx {
|
|
struct nl_sock *sk;
|
|
int ethtool_id;
|
|
};
|
|
|
|
int ethtool_nl_connect(struct ethtool_nl_ctx *ctx);
|
|
void ethtool_nl_close(struct ethtool_nl_ctx *ctx);
|
|
int ethtool_nl_get_optics(struct ethtool_nl_ctx *ctx, const char *netdev, struct optics **oi);
|