Re: [linux-usb-devel] usb_buffer_alloc flags in probe function

2003-06-05 Thread Alan Stern
On Wed, 4 Jun 2003, Daniele Bellucci wrote:

 Hi,
 i've found some usb_buffer_alloc with GFP_KERNEL on in a probe function (kernel 
 2.5.70).
 Since probe isn't ever called in process context... is that correct?

You have that exactly backwards.  probe() is _always_ called in process 
context, in fact in the context of the khubd kernel thread.

Alan Stern



---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel


Re: [linux-usb-devel] usb_buffer_alloc flags in probe function

2003-06-05 Thread David Brownell
Alan Stern wrote:
On Wed, 4 Jun 2003, Daniele Bellucci wrote:


Hi,
i've found some usb_buffer_alloc with GFP_KERNEL on in a probe function (kernel 
2.5.70).
Since probe isn't ever called in process context... is that correct?


You have that exactly backwards.  probe() is _always_ called in process 
context, in fact in the context of the khubd kernel thread.
Or in the context of whatever calls usb_register() on a driver,
such as modprobe.
- Dave







---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel


[linux-usb-devel] usb_buffer_alloc flags in probe function

2003-06-04 Thread Daniele Bellucci
Hi,
i've found some usb_buffer_alloc with GFP_KERNEL on in a probe function (kernel 
2.5.70).
Since probe isn't ever called in process context... is that correct?






-
PGP PKEY  http://pgp.mit.edu:11371/pks/[EMAIL PROTECTED]op=index
ICQ#   104896040  
Netphone/Fax  178.605.7063
Homepage   http://web.tiscali.it/bellucda
-

Daniele Bellucci





---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel