From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vojtech Pavlik Subject: Re: Generic battery interface Date: Sun, 30 Jul 2006 13:46:12 +0200 Message-ID: <20060730114612.GB4898@suse.cz> References: <41840b750607271332q5dea0848y2284b30a48f78ea7@mail.gmail.com> <20060727232427.GA4907@suse.cz> <41840b750607271727q7efc0bb2q706a17654004cbbc@mail.gmail.com> <20060728074202.GA4757@suse.cz> <41840b750607280819t71f55ea7off89aa917421cc33@mail.gmail.com> <20060730085500.GB17759@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from styx.suse.cz ([82.119.242.94]:44516 "EHLO mail.suse.cz") by vger.kernel.org with ESMTP id S932274AbWG3LqP (ORCPT ); Sun, 30 Jul 2006 07:46:15 -0400 Content-Disposition: inline In-Reply-To: <20060730085500.GB17759@kroah.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Greg KH Cc: Dmitry Torokhov , Shem Multinymous , "Brown, Len" , Pavel Machek , Matthew Garrett , kernel list , linux-thinkpad@linux-thinkpad.org, linux-acpi@vger.kernel.org On Sun, Jul 30, 2006 at 01:55:00AM -0700, Greg KH wrote: > No, ick, why would you want that? > > Just look at the "dev" file in sysfs, which shows the major:minor > number. > > Or just look at the directory that you are in, and that's almost always > the /dev node name. > > For example, /sys/block/sda/sda1/ is /dev/sda1. > /sys/class/tty/ttyS1 is /dev/ttyS1. > > It's usually not that difficult to do the mapping :) But it's wrong to rely on it API-wise. -- Vojtech Pavlik Director SuSE Labs