---
name: "video_register_device"
section: "9"
platform: "linux"
package: "linux-manual-2.6.26"
version: "2.6.26-29"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/video_register_device"
---

# video\_register\_device(9)

register video4linux devices

## NAME

video\_register\_device - register video4linux devices

## SYNOPSIS

**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)

## 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

## AUTHOR

**Alan Cox** \<alan@redhat.com\>

-

  Author.

## COPYRIGHT
