Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1203783 > unrolled thread

Query: consistent method for identifying watchdog driver

Started byPratyush Anand <panand@redhat.com>
First post2015-08-10 08:20 +0200
Last post2015-08-10 08:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  Query: consistent method for identifying watchdog driver Pratyush Anand <panand@redhat.com> - 2015-08-10 08:20 +0200

#1203783 — Query: consistent method for identifying watchdog driver

FromPratyush Anand <panand@redhat.com>
Date2015-08-10 08:20 +0200
SubjectQuery: consistent method for identifying watchdog driver
Message-ID<pVOBc-5JE-17@gated-at.bofh.it>
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web