linux-edac.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* EDAC device notification
@ 2023-08-06 10:16 Raz
  0 siblings, 0 replies; only message in thread
From: Raz @ 2023-08-06 10:16 UTC (permalink / raw)
  To: linux-edac

Hello
I wish to extend the EDAC interface to register device drivers.
I want the device driver to be able to be notified when an error occurred.
I want the EDAC to get notified when a device registers.
Here is my suggestion:

edac.c
~~~~~~

// edac_notifier_chain may be used by any device driver
static BLOCKING_NOTIFIER_HEAD(edac_notifier_chain);

//
// This is called from each device to EDAC to perform
// any special configuration, if required.
int edac_register_device(struct device_driver *dev)
{
                list_for_each(item, &mc_devices) {
                                mci = list_entry(item, struct
mem_ctl_info, link);
                                rc |= mci->register_device(dev);
                }
                return rc;
}

Kind regards
Raz

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-06 10:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-06 10:16 EDAC device notification Raz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).