public inbox for linux-watchdog@vger.kernel.org
 help / color / mirror / Atom feed
* Query: consistent method for identifying watchdog driver
@ 2015-08-10  6:10 Pratyush Anand
  0 siblings, 0 replies; only message in thread
From: Pratyush Anand @ 2015-08-10  6:10 UTC (permalink / raw)
  To: linux-watchdog; +Cc: linux-kernel, dyoung

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

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

only message in thread, other threads:[~2015-08-10  6:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-10  6:10 Query: consistent method for identifying watchdog driver Pratyush Anand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox