video_register_device(9)

video_register_device9

Register video4linux devices

Usage

int video_register_device(struct video_device * vfd, int type, int nr);

Arguments

vfd

video device structure we want to register

type

type of device to register

nr

which device number (0 == /dev/video0, 1 == /dev/video1, ... -1 == first free)

Overview

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

Releases

2 releases since Debian 4.0 (Etch); the text changed 1 time.

  1. 4.0
  2. 5.0

Author

Alan Cox <[email protected]>

Author.

From linux-manual-2.6.26 2.6.26-29 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.