Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
drm_ioctl.c File Reference
#include <drm/drmP.h>
#include <drm/drm_core.h>
#include <linux/pci.h>
#include <linux/export.h>

Go to the source code of this file.

Functions

int drm_getunique (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int drm_setunique (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int drm_getmap (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int drm_getclient (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int drm_getstats (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int drm_getcap (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int drm_setversion (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int drm_noop (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
 EXPORT_SYMBOL (drm_noop)
 

Detailed Description

IOCTL processing for DRM

Author
Rickard E. (Rik) Faith faith.nosp@m.@val.nosp@m.inux..nosp@m.com
Gareth Hughes garet.nosp@m.h@va.nosp@m.linux.nosp@m..com

Definition in file drm_ioctl.c.

Function Documentation

int drm_getcap ( struct drm_device dev,
void data,
struct drm_file *  file_priv 
)

Get device/driver capabilities

Definition at line 267 of file drm_ioctl.c.

int drm_getclient ( struct drm_device dev,
void data,
struct drm_file *  file_priv 
)

Get client information.

Parameters
inodedevice inode.
file_privDRM file private.
cmdcommand.
arguser argument, pointing to a drm_client structure.
Returns
zero on success or a negative number on failure.

Searches for the client with the specified index and copies its information into userspace

Definition at line 203 of file drm_ioctl.c.

int drm_getmap ( struct drm_device dev,
void data,
struct drm_file *  file_priv 
)

Get a mapping information.

Parameters
inodedevice inode.
file_privDRM file private.
cmdcommand.
arguser argument, pointing to a drm_map structure.
Returns
zero on success or a negative number on failure.

Searches for the mapping with the specified offset and copies its information into userspace

Definition at line 152 of file drm_ioctl.c.

int drm_getstats ( struct drm_device dev,
void data,
struct drm_file *  file_priv 
)

Get statistics information.

Parameters
inodedevice inode.
file_privDRM file private.
cmdcommand.
arguser argument, pointing to a drm_stats structure.
Returns
zero on success or a negative number on failure.

Definition at line 242 of file drm_ioctl.c.

int drm_getunique ( struct drm_device dev,
void data,
struct drm_file *  file_priv 
)

Get the bus id.

Parameters
inodedevice inode.
file_privDRM file private.
cmdcommand.
arguser argument, pointing to a drm_unique structure.
Returns
zero on success or a negative number on failure.

Copies the bus id from drm_device::unique into user space.

Definition at line 53 of file drm_ioctl.c.

int drm_noop ( struct drm_device dev,
void data,
struct drm_file *  file_priv 
)

No-op ioctl.

Definition at line 354 of file drm_ioctl.c.

int drm_setunique ( struct drm_device dev,
void data,
struct drm_file *  file_priv 
)

Set the bus id.

Parameters
inodedevice inode.
file_privDRM file private.
cmdcommand.
arguser argument, pointing to a drm_unique structure.
Returns
zero on success or a negative number on failure.

Copies the bus id from userspace into drm_device::unique, and verifies that it matches the device this DRM is attached to (EINVAL otherwise). Deprecated in interface version 1.1 and will return EBUSY when setversion has requested version 1.1 or greater.

Definition at line 95 of file drm_ioctl.c.

int drm_setversion ( struct drm_device dev,
void data,
struct drm_file *  file_priv 
)

Setversion ioctl.

Parameters
inodedevice inode.
file_privDRM file private.
cmdcommand.
arguser argument, pointing to a drm_lock structure.
Returns
zero on success or negative number on failure.

Sets the requested interface version

Definition at line 307 of file drm_ioctl.c.

EXPORT_SYMBOL ( drm_noop  )