From owner-freebsd-arch@FreeBSD.ORG Fri Jun 22 08:58:53 2007 Return-Path: X-Original-To: arch@freebsd.org Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 92BE616A400; Fri, 22 Jun 2007 08:58:53 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from gateway.cybervisiontech.com.ua (gateway.cybervisiontech.com.ua [88.81.251.18]) by mx1.freebsd.org (Postfix) with ESMTP id 45E9B13C483; Fri, 22 Jun 2007 08:58:53 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost (hq.cybervisiontech.com [127.0.0.1]) by gateway.cybervisiontech.com.ua (Postfix) with ESMTP id 8584BED5694; Fri, 22 Jun 2007 11:23:19 +0300 (EEST) X-Virus-Scanned: amavisd-new at cybervisiontech.com Received: from gateway.cybervisiontech.com.ua ([127.0.0.1]) by localhost (hq.cybervisiontech.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v7w2G-ozdlq0; Fri, 22 Jun 2007 11:23:17 +0300 (EEST) Received: from [10.2.1.87] (rein.cybervisiontech.com.ua [10.2.1.87]) by gateway.cybervisiontech.com.ua (Postfix) with ESMTP id 0D177ED567D; Fri, 22 Jun 2007 11:23:17 +0300 (EEST) Message-ID: <467B8732.60503@icyb.net.ua> Date: Fri, 22 Jun 2007 11:24:18 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.4 (X11/20070618) MIME-Version: 1.0 To: Ariff Abdullah References: <1182140582.00760687.1182127202@10.7.7.3> <1182453789.00762635.1182442802@10.7.7.3> <1182468188.00762718.1182456601@10.7.7.3> <1182482583.00762779.1182469202@10.7.7.3> In-Reply-To: <1182482583.00762779.1182469202@10.7.7.3> Content-Type: text/plain; charset=KOI8-U Content-Transfer-Encoding: 7bit Cc: arch@freebsd.org, lars.engels@0x20.net, Nate Lawson Subject: Re: patch: acpi usermode suspend API change X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2007 08:58:53 -0000 on 22/06/2007 02:33 Ariff Abdullah said the following: > 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. Maybe I'll say something stupid - I haven't looked at any code nor I have any patches of my own, but wouldn't it be possible to manage cloned devices similarly to how file descriptors are managed ? That is, don't leave unused devices behind, re-use lowest available device id, etc. I think that this would be a right thing. -- Andriy Gapon