From owner-freebsd-acpi@FreeBSD.ORG Wed Oct 11 16:05:07 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DC7F16A40F for ; Wed, 11 Oct 2006 16:05:07 +0000 (UTC) (envelope-from nate@root.org) Received: from ylpvm12.prodigy.net (ylpvm12-ext.prodigy.net [207.115.57.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19AED43DAA for ; Wed, 11 Oct 2006 16:04:49 +0000 (GMT) (envelope-from nate@root.org) X-ORBL: [71.139.39.204] Received: from [10.0.5.50] (ppp-71-139-39-204.dsl.snfc21.pacbell.net [71.139.39.204]) by ylpvm12.prodigy.net (8.13.7 out spool5000 dk/8.13.7) with ESMTP id k9BG4lrA002045; Wed, 11 Oct 2006 12:04:47 -0400 Message-ID: <452D161A.5040509@root.org> Date: Wed, 11 Oct 2006 09:04:42 -0700 From: Nate Lawson User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: John Utz References: <26332441-4BC5-4392-806A-0179464E8D59@utzweb.net> In-Reply-To: <26332441-4BC5-4392-806A-0179464E8D59@utzweb.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: Re: if i was porting a linux kernel module that wrote out to /proc, where should i point it at in freebsd? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Oct 2006 16:05:07 -0000 John Utz wrote: > i've been working on i8k utils off and on for several months. > > (lately it's been what i've been doing whilst i sit at my daughter's > gymnastics class) > > so several of the api's work, ie turning the fans on and off, etc. > > buttons *still* dont work. :-( > > at this point, i want to start working on hXRing the kernel module. > > as currently coded, it writes to /proc. > > i would prefer to not have to require the proc lkm for this to work, i'd > rather do it the bsd way. > > so, umm, what *is* the bsd way ? :-) It looks like "i8k" is the Dell hotkeys/PM driver. Use sysctl as the interface. See the other drivers in /sys/dev/acpi_support for a good template (i.e., acpi_toshiba.c). -- Nate