From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Fri, 29 Apr 2005 04:48:46 +0000 Subject: Re: Finding sysfs mount point Message-Id: <20050429044846.GA27385@kroah.com> 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 Thu, Apr 28, 2005 at 05:08:02PM -0500, Ian Pilcher wrote: > I'm trying to write a script (invoked via a PROGRAM key) to find the > interface number of a USB serial port. (See my post in the "udev: rules > using multiple sysfs directories" thread for the reason why.) > > To do this I need to look as sysfs. What's the best way to figure out > where it's mounted? cat /proc/mounts | grep sysfs | cut -f 2 -d " " works for me. I think there's a glibc function to retrieve this too. > Also, is it safe to rely on the contents of DEVPATH to find a symbolic > link to the device? Yes, that's what it is there for :) thanks, greg k-h ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id5hix _______________________________________________ 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