From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Mon, 03 Jun 2002 21:58:11 +0000 Subject: Re: Which node has the device been bound to? 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 Mon, Jun 03, 2002 at 11:09:36PM +0200, Oliver Neukum wrote: > > But what is the real problem here? What do you want to solve? Mapping > > of a /dev node to a physical device? Or mapping of a physical device to > > a /dev node? Or something else? > > The former. The latter has some principal problems. > To do the former you need to have an atomic operation on an > opened device. > Thus you need to have the device node open and you need > the ioctl to not return a pointer to a driverfs file. You either return > its content or an fd. Ok, I understand a bit better now (sorry, I'm slow today...). So what fd do you want returned in the ioctl()? driverfs implements a tree for every device, not a single file. Do you want a fd for the directory? thanks, greg k-h _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ 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