From: Pratyush Anand <panand@redhat.com>
To: linux-watchdog@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, dyoung@redhat.com
Subject: Query: consistent method for identifying watchdog driver
Date: Mon, 10 Aug 2015 11:40:17 +0530 [thread overview]
Message-ID: <20150810061017.GC4523@dhcppc13.redhat.com> (raw)
Hi Watchdog Folks,
I need some way to identify the driver/module for a given watchdog node say
/dev/watchdog0.
Documentation/watchdog/watchdog-api.txt says:
identity a string identifying the watchdog driver
However, all the watchdog driver does not define identity as DRV_NAME.
Otherway, could be to look for /sys/class/watchdog/watchdog0/device/modalias.
However, for all wd devices(say drivers/misc/mei/wd.c) we do not see an entry
for /sys/class/watchdog/watchdog0/device/. Reason is that parent of
watchdog_device has not been assigned for such devices. I will send fixup for
all such watchdog devices anyway. But, I wanted to know that what could be the
best way to identify the driver.
Thanks for your help.
~Pratyush
reply other threads:[~2015-08-10 6:10 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=20150810061017.GC4523@dhcppc13.redhat.com \
--to=panand@redhat.com \
--cc=dyoung@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.