Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Oct 1997 16:51:20 -0700
From:      Julian Elischer <julian@whistle.com>
To:        mdean <mdean@best.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: devfs / cdevsw
Message-ID:  <343584F8.5656AEC7@whistle.com>
References:  <Pine.SGI.3.95.971003152817.17686B-100000@shellx.best.com>

next in thread | previous in thread | raw e-mail | index | archive | help
mdean wrote:
> 
> When should I use cdevsw, and when should I use devfs, will new systems
> have the /devs mountpoint or something?  And if your device is named dummy
> then how are you supposed to use NDUMMY, and where does it get defined?

wow,
actually I'm actually doing active development of devfs again
after two year's break.

NDUMMY is used should you want to statically allocate some resources.
New drivers should not do this, but use 'malloc' as a general rule.
The use of NDUMMY  teneds to make code that is unsuitable
for conversion to an LKM 
and the eventual aim is to have nearly all drivers LKM'able.

I run /devs here, but have some problems with disks
the answer is a rather large change to the way that disks
are handled on FreeBSD, so I've detoured into that
for a while before I resume working on DEVFS itself.

till then, the example drivers should show you how to do devfs entries.

julian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?343584F8.5656AEC7>