In message <[EMAIL PROTECTED]>, Alexander Langer write
s:
>Thus spake Poul-Henning Kamp ([EMAIL PROTECTED]):
>
>> You guys are overlooking something about DEVFS: devices may appear
>> post-boot.
>
>Ah, yes.
>
>BTW: Devices don't disappear if you unload devices.
>This happens for example with bktr.ko.

That is because the bktr driver fails to call destroy_dev()
when it unloads.

>Hmm.  A technical question: How would the devd be notifed about an
>event in the devfs?

There are many ways to do this, a kqueue() or poll() based solution
is probably the correct way, monitoring the sysctl vfs.devfs.generation
is the Q&D way.

--
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED]         | TCP/IP since RFC 956
FreeBSD coreteam member | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to