.TH "video_register_device" 9 "video_register_device" "25 May 1998" "Kernel Hacker's Manual" LINUX .SH NAME video_register_device \- register video4linux devices .SH SYNOPSIS .B "int" video_register_device .BI "(struct video_device *" vfd "," .BI "int " type "," .BI "int " nr ");" .SH ARGUMENTS .IP "vfd" 12 video device structure we want to register .IP "type" 12 type of device to register .IP "nr" 12 which device number (0 == /dev/video0, 1 == /dev/video1, ... -1 == first free) .SH "DESCRIPTION" 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). Zero is returned on success. Valid types are VFL_TYPE_GRABBER - A frame grabber VFL_TYPE_VTX - A teletext device VFL_TYPE_VBI - Vertical blank data (undecoded) VFL_TYPE_RADIO - A radio card