.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "VIDEO_REGISTER_DEVICE" "" "06 October 2005" "" "" .SH NAME video_register_device \- register video4linux devices .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int video_register_device (struct video_device * \fIvfd\fB, int \fItype\fB, int \fInr\fB); \fR .SH "ARGUMENTS" .TP \fB\fIvfd\fB\fR video device structure we want to register .TP \fB\fItype\fB\fR type of device to register .TP \fB\fInr\fB\fR which device number (0 == /dev/video0, 1 == /dev/video1, ... -1 == first free) .SH "DESCRIPTION" .PP The registration code assigns minor numbers based on the type requested. -ENFILE is returned in all the device slots for this category are full. If not then the minor field is set and the driver initialize function is called (if non NULL). .PP Zero is returned on success. .PP Valid types are .PP VFL_TYPE_GRABBER - A frame grabber .PP VFL_TYPE_VTX - A teletext device .PP VFL_TYPE_VBI - Vertical blank data (undecoded) .PP VFL_TYPE_RADIO - A radio card