Files
s390-tools/zpcimon/nvmemon.h
Niklas Schnelle 4fd607ae5c zpcimon: Monitor for hotplug of NVMes to trigger SMART collection
Use libudev to monitor for "change" events in the "nvme" subsystem that
use the "pcie" transport to trigger NVMe SMART data collection. Only
collect data from the NVMe referenced by the udev event.

Assisted-by: IBM Bob:1.0.1
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>
2026-07-24 18:21:51 +02:00

19 lines
398 B
C

/*
* Copyright IBM Corp. 2025
*
* s390-tools is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#ifndef ZPCIMON_NVMEMON_H
#define ZPCIMON_NVMEMON_H
#include <libudev.h>
struct nvmemon_ctx {
struct udev *udev;
struct udev_monitor *mon;
};
extern const struct zpcimon_ops nvmemon_ops;
#endif /* ZPCIMON_NVMEMON_H */