On Tue, Jun 05, 2001 at 08:09:08PM +0200, Ulrich Weigand wrote:
>
> Kevin Lawton wrote:
>
> > I see in host-linux.c, that the devfs mods I integrated awhile
> > ago, call devfs_register/unregister in _addition_ to
> > register_chrdev/unregister_chrdev.
> >
> > Is this correct? Do we need to call both pairs? I would
> > think devfs would replace the old chrdev conventions.
>
> No, that's two different things. register_chardev says that a
> certain major number is to be associated with this device
> driver, while devfs_register says that a certain *name* (i.e.
> /dev entry) is to be associated with a major/minor number
> pair.
[snip]
OK, that makes sense.
> However, there's convenience functions devfs_register_chrdev
> etc. that just do both calls in one ...
Are you sure? From my brief look at linux/fs/devfs/base.c
devfs_register_chrdev checks to see if you want only devfs (or
something like that. devfs=only provided at boot.) and then
calls register_chrdev if this is not the case. i.e. it does not
call devfs_register for you. Or was I looking in the wrong
place?
--
Michael Wood | Tel: +27 21 762 0276 | http://www.kingsley.co.za/
[EMAIL PROTECTED] | Fax: +27 21 761 9930 | Kingsley Technologies