Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Oct 2003 21:25:45 +0200
From:      John Hay <jhay@icomtek.csir.co.za>
To:        Bruce M Simpson <bms@spc.org>
Cc:        current@freebsd.org
Subject:   Re: umass panic when connecting camera
Message-ID:  <20031007192545.GA39644@zibbi.icomtek.csir.co.za>
In-Reply-To: <20031007181109.GF73063@saboteur.dek.spc.org>
References:  <20031004190217.GA10149@zibbi.icomtek.csir.co.za> <20031007180202.GA37174@zibbi.icomtek.csir.co.za> <20031007181109.GF73063@saboteur.dek.spc.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 07, 2003 at 07:11:10PM +0100, Bruce M Simpson wrote:
> On Tue, Oct 07, 2003 at 08:02:02PM +0200, John Hay wrote:
> > Any comments from people a little more knowledgable in the umass/usb
> > area?
> 
> I don't know about USB specifically, but I thought timeout() et al were
> to be deprecated in favour of callout*() ?

Well I just wanted to get my device working again without changing the
code too much, so I added an untimeout() for the existing timeout().
The usb code is also shared with the other *BSD groups. Looking at the
rest of the usb files, I see that they do use usb_callout*(), so one
can probably convert umass to it.

The man page for (un)timeout and callout* is interesting because it does
say that timeout() "is the old style and new code should use the callout_*
functions" but a little later it also says

"The functions callout_init(), callout_stop() and callout_reset() are low-
level routines for clients who wish to allocate their own callout struc-
tures."

:-)

John
-- 
John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031007192545.GA39644>