Re: ioctl parameters

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



Quoting Esa Ikonen <esa.ikonen@xxxxxx>:

> Hi! Could someone help a newcomer a little bit?
> 
> 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 = file descriptor, yyy = parameter(s).

> Where could I read more about the subject?

'man ioctl' could be helpful:
__________________________________________________________________

IOCTL(2)            Linux Programmer's Manual            IOCTL(2)

NAME
       ioctl - control device

SYNOPSIS
       #include <sys/ioctl.h>

       int ioctl(int d, int request, ...)

       [The  "third"  argument  is  traditionally char *argp, and
       will be so named for this discussion.]
__________________________________________________________________

Dmitri

-- 
[...] but this is generally not a real limitation (it means that you can't 
have timeouts longer than 248 days on a x86, tough luck). 
  (Linus, discussing how kernel timeouts should be implemented.)

Attachment: pgpHFmXrGNyKF.pgp
Description: PGP signature


[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