devctl (alike?) for devfs

John Baldwin jhb at freebsd.org
Thu Apr 24 13:07:02 UTC 2008


On Thursday 24 April 2008 04:05:10 am Andriy Gapon wrote:
> on 24/04/2008 01:39 Andriy Gapon said the following:
> > on 23/04/2008 22:49 John Baldwin said the following:
> >> Events have a subsystem associated with them, so devfs events would use
> >> their own subsystem type to avoid that sort of confusion.
> >
> > Thank you for straightening me - for some reason I was thinking about
> > "+"/"-" (attach/detach) events, but I see that "!" (notification) would
> > be much more appropriate. As you said, this can be completely modeled
> > after IF notifications.
>
> Do you think it would be better to post notification from make_dev*() in
> kern_conf.c or from devfs_create()?
> I mean will such notification be useful if there is no devfs to access
> the device from userland?

I'm not sure.  Probably just make_dev*() as all systems will have a devfs 
on /dev.

-- 
John Baldwin


More information about the freebsd-hackers mailing list