From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Stephen Morgan" Date: Mon, 16 May 2005 15:40:40 +0000 Subject: RE: Need persistent node to USB port naming 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 > On Sat, May 14, 2005 at 12:04 AM, Greg KH wrote: > On Fri, May 13, 2005 at 06:29:16PM -0500, Stephen Morgan wrote: > >On Fri, May 13, 2005 at 12:55 PM, Greg KH wrote: > >> On Fri, May 13, 2005 at 11:55:05AM -0500, Stephen Morgan wrote: > >>> One problem I've run into is trying to create a dummy node > that allows me to > >>> communicate with the driver thru ioctl's even when no device > is plugged in. > >>> In 2.4, I just created a node with a minor I knew would never > be used, and > >>> in the driver, I filtered for that minor. > > > > Any thoughts on how to create this dummy device node? > > Um, I can't recommend _ever_ doing this kind of thing. > > That being said, what do you want to get to and from the driver? It's mostly useful during development. For instance, I can change the driver's debug print priority on the fly. Eventually, I'll use it to retrieve diagnostic info the driver is collecting. > Why not just use sysfs files that you put in your driver's directory? That > is what they are there for :) Okay, I'm not sure what you just said, so I'm gonna go read sysfs.txt. > Hope this helps, Me too :-) Thanks, Stephen > > greg k-h > ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_idt12&alloc_id344&op=click _______________________________________________ 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