Re: umass panic when connecting camera

[ Available lists | Index of freebsd-current | Month of Oct 2003 | Week of 7 Oct 2003 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
John Hay <jhay@icomtek.csir.co.za>
Date
7 Oct 2003 12:25:53
Subject
Re: umass panic when connecting camera
Message-ID
20031007192545.GA39644@zibbi.icomtek.csir.co.za

In reply to

[ Hide this part ]
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


Elapsed time: 0.181 seconds