Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Mar 2009 08:36:54 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        Weongyo Jeong <weongyo@freebsd.org>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: q: a trivial question of usb2_transfer_unsetup()
Message-ID:  <200903270836.55005.hselasky@c2i.net>
In-Reply-To: <20090327022902.GC19512@weongyo.cdnetworks.kr>
References:  <20090327022902.GC19512@weongyo.cdnetworks.kr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 27 March 2009, Weongyo Jeong wrote:
> Hello Hans,
>
> I have a simple question that is there a possibility for .mh.callback of
> usb2_config to be called after usb2_transfer_unsetup()?

Hi,

usb2_transfer_unsetup() calls usb2_transfer_drain() which ensures that the 
callback has exited before returning. Even if you drop the private transfer 
lock in the callback and pick it up before returning.

--HPS



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