From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 27 22:32:36 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E43D10657C1 for ; Tue, 27 Jan 2009 22:32:36 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from mail-ew0-f21.google.com (mail-ew0-f21.google.com [209.85.219.21]) by mx1.freebsd.org (Postfix) with ESMTP id 034F98FC14 for ; Tue, 27 Jan 2009 22:32:35 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by ewy14 with SMTP id 14so3421362ewy.19 for ; Tue, 27 Jan 2009 14:32:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=jdDXy4trLarkGbJOzavDi4WbRTLB2aUpiCsHgscOoYY=; b=G6zQhK2TN0tTQFgHM90mlnUpQU+c4p1ivhFM6Qv1mGItPwppI4Au169o597Z3RYCd1 lmLprPmlBU5YxDEbXgvVn4DcLZknQ/VJAOsbyFGBhmfkvIchc67l+3BT+pYIUwWVNwNc Si3UWNcOALzq3kGtSK0mUn5spwWcFmDb8SA+4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=Fucv2Q4XRAGfuwoE/leTA+OHoAbHMmWd943dv6r+0zBJxEb658IVIzjO3UW7M4pk0u hUQcq0GCOIT+6Qrv3N+ljMn76bAe0zUvuRHpq+WwZjd9a5is/wn85enoYROc5fLF0h93 jDD3VYTKoQ+lIT78L9ZRU9tjBW/d0I+5RFuUA= Received: by 10.210.11.17 with SMTP id 17mr4606971ebk.32.1233095555096; Tue, 27 Jan 2009 14:32:35 -0800 (PST) Received: from epsilon.lan (bl6-156-29.dsl.telepac.pt [82.155.156.29]) by mx.google.com with ESMTPS id c5sm46624780nfi.51.2009.01.27.14.32.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Jan 2009 14:32:34 -0800 (PST) Sender: Rui Paulo Message-Id: <4AB80C23-53E2-4413-B680-1B26BD46E886@freebsd.org> From: Rui Paulo To: Daniel Lannstrom In-Reply-To: <20090127150040.GA4333@haruhi> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Tue, 27 Jan 2009 22:32:32 +0000 References: <20090127124137.46fcfac5@baby-jane.lamaiziere.net> <20090127150040.GA4333@haruhi> X-Mailer: Apple Mail (2.930.3) Cc: freebsd-hackers@freebsd.org Subject: Re: Mackbook pro nvidia based video backlight X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2009 22:32:37 -0000 On 27 Jan 2009, at 15:00, Daniel Lannstrom wrote: >> I'm asking which method will be the best to interface the driver with >> userland applications? > > You might want to make it a character device driver. And write a small > userland control program. Sysctl isn't really made for this kind of > functionality. Why not? Sysctl seems perfect to handle this. -- Rui Paulo