Em Thu, 04 Jun 2009 17:20:50 +0800
figo.zhang figo.zh...@kolorific.com escreveu:
On Thu, 2009-06-04 at 11:18 +0200, Laurent Pinchart wrote:
Hi,
On Thursday 04 June 2009 06:20:07 figo.zhang wrote:
The function video_register_device() will call the
video_register_device_index(). In
On Friday 05 June 2009 04:51:36 Figo.zhang wrote:
On Thu, 2009-06-04 at 11:27 +0200, Hans Verkuil wrote:
On Thu, 2009-06-04 at 11:18 +0200, Laurent Pinchart wrote:
Hi,
On Thursday 04 June 2009 06:20:07 figo.zhang wrote:
The function video_register_device() will call the
Hi,
On Thursday 04 June 2009 06:20:07 figo.zhang wrote:
The function video_register_device() will call the
video_register_device_index(). In this function, firtly it will do some
argments check , if failed,it will return a negative number such as
-EINVAL, and then do cdev_alloc() and
On Thu, 2009-06-04 at 11:18 +0200, Laurent Pinchart wrote:
Hi,
On Thursday 04 June 2009 06:20:07 figo.zhang wrote:
The function video_register_device() will call the
video_register_device_index(). In this function, firtly it will do some
argments check , if failed,it will return a
On Thu, 2009-06-04 at 11:18 +0200, Laurent Pinchart wrote:
Hi,
On Thursday 04 June 2009 06:20:07 figo.zhang wrote:
The function video_register_device() will call the
video_register_device_index(). In this function, firtly it will do
some
argments check , if failed,it will return a
On Thu, 2009-06-04 at 11:18 +0200, Laurent Pinchart wrote:
Hi,
On Thursday 04 June 2009 06:20:07 figo.zhang wrote:
The function video_register_device() will call the
video_register_device_index(). In this function, firtly it will do some
argments check , if failed,it will return a
On Thu, 2009-06-04 at 11:27 +0200, Hans Verkuil wrote:
On Thu, 2009-06-04 at 11:18 +0200, Laurent Pinchart wrote:
Hi,
On Thursday 04 June 2009 06:20:07 figo.zhang wrote:
The function video_register_device() will call the
video_register_device_index(). In this function, firtly it will
The function video_register_device() will call the
video_register_device_index().
In this function, firtly it will do some argments check , if failed,it will
return a
negative number such as -EINVAL, and then do cdev_alloc() and
device_register(), if
success return zero. so
For video_register_device(), it return zero means register success.It would be
return zero
or a negative number (on failure),it would not return a positive number.so it
have better to
use this to check err:
int err = video_register_device(vdev, VFL_TYPE_GRABBER, -1);
if (err !=