Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jun 2009 13:29:49 +0200
From:      Sebastian Huber <sebastian.huber@embedded-brains.de>
To:        freebsd-usb@FreeBSD.org
Subject:   Potential problem with USB_THREAD_SUSPEND()?
Message-ID:  <4A48A5AD.9040508@embedded-brains.de>

next in thread | raw e-mail | index | archive | help
Hi,

USB_THREAD_SUSPEND(p) is defined as {kproc|kthread}_suspend(p, 0).  This means
that it will wait until the corresponding thread recognizes its suspend request
and suspends itself.  It seems that {kproc|kthread}_suspend_check() will be
used nowhere in the USB system.  Thus the USB_THREAD_SUSPEND() will block
forever in most cases? It is only used in usb_proc_drain() during cold boot.

Have a nice day!

-- 
Sebastian Huber, Embedded Brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-6
Fax     : +49 89 18 90 80 79-9
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



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