From owner-freebsd-acpi@FreeBSD.ORG Thu Jun 21 23:33:39 2007 Return-Path: X-Original-To: acpi@freebsd.org Delivered-To: freebsd-acpi@FreeBSD.ORG Received: from misaki (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with SMTP id 0F47F16A473; Thu, 21 Jun 2007 23:33:37 +0000 (UTC) (envelope-from ariff@FreeBSD.org) Date: Fri, 22 Jun 2007 07:33:22 +0800 From: Ariff Abdullah To: Nate Lawson Message-Id: <20070622073322.3054360b.ariff@FreeBSD.org> In-Reply-To: <467AA768.60306@root.org> References: <46756BBE.5030603@root.org> <20070621155330.GE17194@e.0x20.net> <467AA768.60306@root.org> Organization: FreeBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Fri__22_Jun_2007_07_33_22_+0800_yRoGAbpaDpb4XnBS" Cc: acpi@freebsd.org, arch@freebsd.org, lars.engels@0x20.net, current@freebsd.org Subject: Re: patch: acpi usermode suspend API change 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: Thu, 21 Jun 2007 23:33:39 -0000 --Signature=_Fri__22_Jun_2007_07_33_22_+0800_yRoGAbpaDpb4XnBS Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 21 Jun 2007 09:29:28 -0700 Nate Lawson wrote: > Lars Engels wrote: > > And I just saw that every 5 second a new apm device is created!=20 [...] > >=20 > > [...] >=20 > What are you running that opens /dev/apm? Maybe powerd? >=20 > I have a patch that handles reaping these devices, unfortunately it > is pending completion of another patch that allows devfs_destroy() > from a close() routine. That part is a core problem in FreeBSD, and > it isn't really something in acpi. >=20 Same issue with sound devices as well, but I've managed to solve it by implementing own clone manager which require tiny hook into open() and close() along with garbage collector and ability to handle various abusive behaviour (while : ; ls /dev/xxx ; done, etc). See sys/dev/sound/clone.* . It should be generic enough. -- Ariff Abdullah FreeBSD ... Recording in stereo is obviously too advanced and confusing for us idiot ***** users :P ........ --Signature=_Fri__22_Jun_2007_07_33_22_+0800_yRoGAbpaDpb4XnBS Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGewrClr+deMUwTNoRAglqAJwLOBnXpZpr8C4tGOYXzFfpnt3iQgCggmaI 538OwsFjKgNtm+9WnZb9WgY= =BSeB -----END PGP SIGNATURE----- --Signature=_Fri__22_Jun_2007_07_33_22_+0800_yRoGAbpaDpb4XnBS--