From: Raz <raziebe@gmail.com>
To: linux-edac@vger.kernel.org
Subject: EDAC device notification
Date: Sun, 6 Aug 2023 13:16:30 +0300 [thread overview]
Message-ID: <CAPB=Z-pEto2T+WbA8_nEk2GyVo70_gZDCGLjdm1GgNJ9vH8OFg@mail.gmail.com> (raw)
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
reply other threads:[~2023-08-06 10:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAPB=Z-pEto2T+WbA8_nEk2GyVo70_gZDCGLjdm1GgNJ9vH8OFg@mail.gmail.com' \
--to=raziebe@gmail.com \
--cc=linux-edac@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).