📄 ioc_cmd.h
字号:
#ifndef IOC_CMD_H
#define IOC_CMD_H
#include <linux/ioctl.h> /* needed for the _IOW etc stuff used later */
/*
* ioctl definitions
*/
/* use 'k' as magic number */
#define MJPEG_IOC_MAGIC 'k'
#define MJPEG_IOCRESET _IO(MJPEG_IOC_MAGIC, 0)
#define MJPEG_IOCSTART _IO(MJPEG_IOC_MAGIC, 1)
#define MJPEG_IOCSTOP _IO(MJPEG_IOC_MAGIC, 2)
/*
* * S means "Set" through a ptr,
* * T means "Tell" directly with the argument value
* * G means "Get": reply by setting through a pointer
* * Q means "Query": response is on the return value
* * X means "eXchange": G and S atomically
* * H means "sHift": T and Q atomically
* */
#define MJPEG_IOCQFRAMEAVAIL _IO(MJPEG_IOC_MAGIC, 3)
#define MJPEG_IOCQFRAMESIZE _IO(MJPEG_IOC_MAGIC, 4)
#define MJPEG_IOCGREAD _IO(MJPEG_IOC_MAGIC, 7)
/* ... more to come */
#define MJPEG_IOCHARDRESET _IO(MJPEG_IOC_MAGIC, 15) /* debugging tool */
#define MJPEG_IOC_MAXNR 15
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -