Can USB camera driver realize zero copy?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Can USB camera driver realize zero copy?

robert
This post has NOT been accepted by the mailing list yet.
HI,
Now I use gspca of kernel to capture image from USB camera. gspca malloc image buffer by vmalloc() and malloc urb->transfer_buffer by usb_alloc_coherent(). So I must memcpy urb->transfer_buffer to image buffer. Now I want to use image buffer to receive data from camera directly. If I can do it, I will reduce a copy.

Any help much appreciated.

fengxin
kind regards
Loading...