• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cdevsw close never called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cdevsw close never called


  • Subject: Re: cdevsw close never called
  • From: Andrew Gallatin <email@hidden>
  • Date: Fri, 06 Mar 2009 17:33:20 -0500

Andrew Gallatin wrote:

The best I've been able to achieve so far is to
periodically reap state which look dead.  But that
is just gross.

BTW, the reaping I'm doing looks at the vnode associated with the device node. Periodically, the driver scans all open devices, and checks for any with a vnode whose vcount() is 0. If this is happens, then I know the race happened, and I can free up the resources associated with that device and allow it to be opened again. Does that seem reasonable?

Drew

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: cdevsw close never called
      • From: mm w <email@hidden>
References: 
 >cdevsw close never called (From: Andrew Gallatin <email@hidden>)

  • Prev by Date: Re: cdevsw close never called
  • Next by Date: Re: cdevsw close never called
  • Previous by thread: Re: cdevsw close never called
  • Next by thread: Re: cdevsw close never called
  • Index(es):
    • Date
    • Thread