mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
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>
19 lines
398 B
C
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 */
|