Subject: device insertion/removal
To: None <tech-kern@netbsd.org>
From: Ferry Sutanto <fsutanto@yahoo.com>
List: tech-kern
Date: 10/15/2001 19:28:44
Hi,
Can anybody give me some tip regarding device
insertion/removal ? If the box boots up with the
device already inserted, it will attach correctly.
But, when i removed it, sometimes it works which means
that the device got detach (config_detach and
wddetach) and unmounted correctly and other times, it
doesn't work. When it doesn't work, I can see that
there is wdcintr pending and not until it is done
doing what it needs to do, it will block the wddetach
call.
As for device insertion, what is the correct way to
attach the device ? I tried calling opendisk() to get
the file descriptor so I can call wdioctl(), but I got
an error saying the device is not configured.
If anybody can offer some tips, I appreciate it.
Thanks!
Ferry
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com