Even easier: # grep filemon ..../src/sys/conf/majors device-major filemon char 202 filemon On Tue, 12 May 2015, gary%duzan.org@localhost wrote:
=> I don't have /dev/filemon, and MKDEV has no entry for it -- what are
=> the major/minor numbers for it ? Any special considerations outside of
=> running mknod w/ appropriate args ?
=>
=> -bch
=>
From src/sys/dev/filemon/mknod-sh ,
capo { ~ } % sysctl kern.drivers | sed 's/.*\[\([^ ]*\) [^ ]*
filemon\].*/\1/'
202
gets you the major number, the minor number is zero, and it is a character
device.
Good luck...
Gary Duzan
------------------------------------------------------------------------- | Paul Goyette | PGP Key fingerprint: | E-mail addresses: | | (Retired) | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com | | Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org | -------------------------------------------------------------------------