Firewire + 5-STABLE + devd?

Joe Marcus Clarke marcus at marcuscom.com
Tue Aug 23 15:52:15 GMT 2005


On Tue, 2005-08-23 at 11:18 -0400, Christopher Sean Hilton wrote:
> On Tue, Aug 23, 2005 at 07:58:56AM -0400, Christopher Sean Hilton wrote:
> > Hi,
> > 
> > I'm trying to get my hotplug utility, which works well with usb
> > devices, to work with firewire devices under 5-STABLE. But when I devd
> > doesn't seem to do anything with firewire devices and when I cat
> > /dev/devctl I get get nothing on firewire. Is there a sysctl I can
> > tune or do I need to upgrade to the 6-{RELEASE,CURRENT} branch?
> > 
> 
> Also, will devd generate events for the attachment of a da[0-9]
> device?

No.  Unfortunately, CAM is not newbus-ified, and thus will not send
devctl events.  ATA disks will in 6.X and higher, though.

>  Right now it seems as though it doesn't and that is
> problematic. The issue is this. If I attach my usb pendrive to my
> computer it gets devices umass0 and da0. But if I attach a firewire
> device first then my usb pendrive is umass0, da1. So, if events aren't
> generated to say that da1 has become available then I have to figure
> out what umass0 is connected to.

Yep.  You should be able to work backwards through the CAM subsystem to
obtain this information.  Take a look at the output of ``camcontrol
devlist -v''.  The information is there, and you can use libcam to get
it.

Joe

> 
> Thanks in advance
>      Chris
> 
-- 
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050823/1a02b29b/attachment.bin


More information about the freebsd-stable mailing list