From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Mon, 23 May 2005 16:10:28 -0400 From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] device close In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: Topicbox-Message-UUID: 50f2c320-ead0-11e9-9d60-3106f5b1d025 > In my aoe driver I'm getting closes on QIDs that were never > opened: You get a close call for each fid that is clunked. Some fids are never opened. You can test c->flag&COPEN in aoeclose to see if the fid was an open one. See /sys/src/9/port/devmouse.c:/^mouseclose for a very simple ref count. Russ