Date: Wed, 24 Oct 2007 22:58:39 -0400 From: drgerlists@gmail.com (Dr. Gary E. RAFE) To: amdmi3@amdmi3.ru Cc: freebsd-usb@freebsd.org Subject: Re: how to distinguish multiple umass devices? Message-ID: <4720065f.pXzyS31GREBN7Z4DD3SoGkw2@lmrmac.uhw.utoledo.edu> In-Reply-To: <20071025011507.GA15904@hades.panopticon> References: <20071025011507.GA15904@hades.panopticon>
next in thread | previous in thread | raw e-mail | index | archive | help
Dmitry Marakasov <amdmi3@amdmi3.ru> wrote: !I have multiple umass devices (flash key, player and photo camera), and !I want to distinguish their devices in some way. ! !The best thing would be to have /dev/flash, /dev/camera etc, as in this !case I'll distinguish thoughput graphs on GKrellM system monitor. But I !don't think it's possible, so I need a way to at least create !corresponding symlinks in /dev. As I understand, devd is my savior, but !there's one problem that bugs me: devd sees umass[012], but it doesn't !know anything about da[012]. Is there guarantee that umassX matches daX, !or is it possible to get da* device from devd on umass attach? HAL appears solve this, but I don't need the overhead of HAL, so I mediated the attach process with a script that is called from devd: attach 99 { device-name "umass[0-9]+"; action "/usr/opt/etc/rmediactl $device-name start"; }; You are welcome to have a look at this script for some ideas: <http://drgerlists.googlepages.com/rmediactl> Comments from the list are welcome. -- Dr Gary E RAFE: drgerlists at gmail dot com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4720065f.pXzyS31GREBN7Z4DD3SoGkw2>