From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Adam Kropelin" Date: Tue, 23 Dec 2003 01:47:02 +0000 Subject: Re: [HACK] Give hiddev a device link in sysfs 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 Greg KH wrote: > On Mon, Dec 15, 2003 at 07:32:35PM -0500, Adam Kropelin wrote: >> (/sys/class/usb/hiddevN/device). Further investigation showed that >> the broken link is due to hiddev's being not-quite-a-usb-device and >> having a zero kobj with no parent, etc. >> >> I cooked up the hack-job patch below and it seems to be working. >> Clearly this isn't the right solution, but it's a starting point and >> it solves my immediate need. > > Yeah, hiddev is wierd. It needs to dynamically allocate that > interface structure, and then a patch like this will start to make > sense. Right now bad things can happen if you unload the hiddev > module when you have a file in sysfs open for that device. > > But this patch is a start. Care to finish it up? Sure...I'll have a chance to look at it after the holidays. --Adam ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&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