From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Date: Sat, 10 Aug 2002 19:49:13 +0000 Subject: Re: Hotplugging USB Compact flash reader Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org > 1. Is it correct to modify usb.agent itself? Should I > rather include the VID-PID and other details in > the handbook/userbook? Don't modify usb.agent, no ... /etc/hotplug/usb/$DRIVERNAME is where you put per-driver setup/config tweaks. From what you said, you're assuming only one reader (or SCSI-ish device) will ever be connected ... you're choosing a single device name and mount point. That's error prone; the reason is that you're using the wrong level of hotplug event. As I said earlier, to solve this safely you need higher level hotplug events: "here's a disk" (/dev/sdc or whatever). > 2. What is the "match-flag"?? AFAI can see it seems to > be a "mask flag" - something to be 'anded' with > something else. What is the principle behind it? See for "struct usb_device_id" support. > 3. This is premature, but could someone give me a hint > as to which desktop agent I should be talking to? To my knowledge, there is no such desktop agent yet. That's why I suggested you be prepared to write one. - Dave ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel