From: Ducrot Bruno Subject: Re: heatload 0.4 now with throttling support Date: Thu, 19 Dec 2002 14:23:03 +0100 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20021219132303.GH4257@poup.poupinou.org> References: <3E008120.5080908@uni-muenster.de> <20021218153355.GK347@poup.poupinou.org> <3E009EB5.7010109@muenster.de> <20021218170828.GA9127@clara.net> <3E00AEC8.9050906@muenster.de> <20021218180329.GA9439@clara.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20021218180329.GA9439-6JSjyQ0Qj1ReoWH0uzbU5w@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Faye Pearson Cc: Malte Thoma , ACPI-Devel List-Id: linux-acpi@vger.kernel.org On Wed, Dec 18, 2002 at 06:03:29PM +0000, Faye Pearson wrote: > Malte Thoma [thoma-iYtK5bfT9M8b1SvskN2V4Q@public.gmane.org] wrote: > > In which directory, in /proc/acpi or in ../thermal_zone ? > > Well, everything under /proc/acpi is well-known (so far at least) > ac_adapter/ > thermal_zone/ > battery/ > processor/ > etc. > > In each of those directories there may be one or more other directories > - one for each node eg. > > ACAD, AC0 for AC > BAT0, BAT1, BAT2, BATR for batteries > TZ0, THRM for thermal zones. > CPU0, PROC, for processor > > The only thing you can do is opendir("/proc/acpi/thermalzone"), then > readdir for each item - ignore . and .. of course. No. scandir(). You can alphasort. -- Ducrot Bruno -- Which is worse: ignorance or apathy? -- Don't know. Don't care. ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/