Subject: Re: no callout_stop? Re: callout_init ...
To: Chapman Flack <nblists@anastigmatix.net>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 01/05/2006 00:03:33
On Wed, Jan 04, 2006 at 06:02:13PM -0500, Chapman Flack wrote:
> More on my earlier callout(9) question, I notice that
> midi(4) has no reference to callout_stop() anywhere.
> And yet it is a device that can detach and disappear
> at any time (when you pull a USB cable, ferinstance).
> Can that be right? Again, I've never seen a crash - is
> there some way the callouts get canceled automagically,
> or is it just luck?
It's luck. callouts needs to be stopped and freed explicitely before
the pointer passed to the callback is freed.
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--