All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: iTCO multiple /dev entries
       [not found] <CADpTngUMM2hJar=bzf6cxxxTGK8_FALbs154YsmJk1_4A_bhcg@mail.gmail.com>
@ 2013-10-29  8:19 ` Wim Van Sebroeck
  0 siblings, 0 replies; only message in thread
From: Wim Van Sebroeck @ 2013-10-29  8:19 UTC (permalink / raw)
  To: Fabio Coatti; +Cc: Linux Watchdog Mailing List

Hi Fabio,

> Hi, on some machines I'm trying to setup iTCO wdt (ivybridge/panther
> point), but I'm perplexed about the presence of three devices:
> 
> 
> kefk dev # ls -la wat*
> crw------- 1 root root  10, 130  4 ago 22.21 watchdog
> crw------- 1 root root 251,   0  4 ago 22.21 watchdog0
> crw------- 1 root root 251,   1  4 ago 22.21 watchdog1
> 
> 
> I was expecting only one, so I'm a bit confused about the difference
> between the devices and how to use it. I googled a bit without big
> success... maybe you could point me to some documentation?
> I checked also sources and kernel Documentation/, still no clues :)

with the introduction of the watchdog generic framework we allowed more
then 1 watchdog device. So you have watchdog0 till watchdog... .
In your case you have 2 devices that were detected: watchdog0 and watchdog1.
(for instance a iTCO device and a Super-I/O watchdog device).
for compatibility /dev/watchdog0 is the same as /dev/watchdog.

We indeed have real documentation about it, but the ideas are in
Documentation/watchdog/watchdog-kernel-api.txt (See the part:
	It contains following fields:
	* id: set by watchdog_register_device, id 0 is special. It has both a
	  /dev/watchdog0 cdev (dynamic major, minor 0) as well as the old
	  /dev/watchdog miscdev. The id is set automatically when calling
	  watchdog_register_device.

Kind regards,
Wim.


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

only message in thread, other threads:[~2013-10-29  8:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CADpTngUMM2hJar=bzf6cxxxTGK8_FALbs154YsmJk1_4A_bhcg@mail.gmail.com>
2013-10-29  8:19 ` iTCO multiple /dev entries Wim Van Sebroeck

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.