drm_ioctl(9) ioctl callback implementation for DRM drivers

SYNOPSIS

long drm_ioctl(struct file * filp, unsigned int cmd, unsigned long arg);

ARGUMENTS

filp

file this ioctl is called on

cmd

ioctl cmd number

arg

user argument

LOOKS UP THE IOCTL FUNCTION IN THE

:ioctls table, checking for root previleges if so required, and dispatches to the respective function.

RETURNS

Zero on success, negative error code on failure.

AUTHORS

Jesse Barnes <[email protected]>
Intel Corporation,         
        

Initial version

Laurent Pinchart <[email protected]>
Ideas on board SPRL,         
        

Driver internals

Daniel Vetter <[email protected]>
Intel Corporation,         
        

Contributions all over the place

Lukas Wunner <[email protected]>

vga_switcheroo documentation

COPYRIGHT