9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Russ Cox <russcox@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] device close
Date: Mon, 23 May 2005 16:10:28 -0400	[thread overview]
Message-ID: <ee9e417a05052313106895f47d@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.60.0505231426220.21782@athena>

> 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


      reply	other threads:[~2005-05-23 20:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-23 19:47 Sam
2005-05-23 20:10 ` Russ Cox [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ee9e417a05052313106895f47d@mail.gmail.com \
    --to=russcox@gmail.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).