···272typedef int drm_ioctl_compat_t(struct file *filp, unsigned int cmd,273 unsigned long arg);2740000275typedef struct drm_ioctl_desc {276 drm_ioctl_t *func;277- int auth_needed;278- int root_only;279} drm_ioctl_desc_t;280281typedef struct drm_devstate {···373/** File private data */374typedef struct drm_file {375 int authenticated;0376 int minor;377 pid_t pid;378 uid_t uid;
···272typedef int drm_ioctl_compat_t(struct file *filp, unsigned int cmd,273 unsigned long arg);274275+#define DRM_AUTH 0x1276+#define DRM_MASTER 0x2277+#define DRM_ROOT_ONLY 0x4278+279typedef struct drm_ioctl_desc {280 drm_ioctl_t *func;281+ int flags;0282} drm_ioctl_desc_t;283284typedef struct drm_devstate {···370/** File private data */371typedef struct drm_file {372 int authenticated;373+ int master;374 int minor;375 pid_t pid;376 uid_t uid;