Re: ioctl parameters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi Esa,

On Thu, 2002-02-14 at 15:39, Esa Ikonen wrote:
> The parameters of ioctl calls are unclear to me. For excample in
> 	ioctl ( xxx, VIDIOC_QUERYCAP, yyy);
> What is the meaning of parameters xxx and yyy? I guess that xxx is a
> pointer to struct v4l2_capability, but what is yyy?

xxx is an integer that you get returned when opening the device, y is
the struct v4l2_capability.

int fd;
struct v4l2_capability cap;
fd = open("/dev/video", O_RDONLY);
ioctl(fd, VIDIOC_QUERYCAP, &cap);

Ronald

-- 
-   .-.
-   /V\    | Ronald Bultje <rbultje@xxxxxxxxxxxxxxxxxxx>
-  // \\   | Running: Linux 2.4.17-XFS and OpenBSD 3.0
- /(   )\  | http://ronald.bitfreak.net/
-  ^^-^^





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux