QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2074|回复: 2

大家看看这是什么宏???

[复制链接]
发表于 2005-6-21 21:06:04 | 显示全部楼层 |阅读模式
#define VIDIOCGCAP                _IOR('v',1,struct video_capability)        /* Get capabilities */
#define VIDIOCGCHAN                _IOWR('v',2,struct video_channel)        /* Get channel info (sources) */
#define VIDIOCSCHAN                _IOW('v',3,struct video_channel)        /* Set channel         */
#define VIDIOCGTUNER                _IOWR('v',4,struct video_tuner)                /* Get tuner abilities */
#define VIDIOCSTUNER                _IOW('v',5,struct video_tuner)                /* Tune the tuner for the current channel */
#define VIDIOCGPICT                _IOR('v',6,struct video_picture)        /* Get picture properties */
#define VIDIOCSPICT                _IOW('v',7,struct video_picture)        /* Set picture properties */
#define VIDIOCCAPTURE                _IOW('v',8,int)                                /* Start, end capture */
#define VIDIOCGWIN                _IOR('v',9, struct video_window)        /* Get the video overlay window */
#define VIDIOCSWIN                _IOW('v',10, struct video_window)        /* Set the video overlay window - passes clip list for hardware smarts , chromakey etc */
#define VIDIOCGFBUF                _IOR('v',11, struct video_buffer)        /* Get frame buffer */
#define VIDIOCSFBUF                _IOW('v',12, struct video_buffer)        /* Set frame buffer - root only */
#define VIDIOCKEY                _IOR('v',13, struct video_key)                /* Video key event - to dev 255 is to all - cuts capture on all DMA windows with this key (0xFFFFFFFF == all) */
#define VIDIOCGFREQ                _IOR('v',14, unsigned long)                /* Set tuner */
#define VIDIOCSFREQ                _IOW('v',15, unsigned long)       
linux内核中的,_OR,IOW这些是什么,在那个文件中有定义??
为什么在不同硬件平台下,他们的值不同。
发表于 2005-6-26 16:13:24 | 显示全部楼层
在平台相关的include目录下:

/include/asm-mips/ioctl.h
/include/asm-i386/ioctl.h
/include/asm-ppc/ioctl.h
...
回复

使用道具 举报

 楼主| 发表于 2005-6-28 14:56:53 | 显示全部楼层
thanks up
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-29 05:40 , Processed in 0.057300 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表