|
XenevaOS
|
#include <drm/drm_file.h>
Go to the source code of this file.
Macros | |
| #define | ACCEL_MAJOR 261 |
| #define | ACCEL_MAX_MINORS 256 |
| #define | DRM_ACCEL_FOPS |
: name for the generated structure | |
DEFINE_DRM_ACCEL_FOPS() - macro to generate file operations for accelerators drivers This macro autogenerates a suitable &struct file_operations for accelerators based drivers, which can be assigned to &drm_driver.fops. Note that this structure cannot be shared between drivers, because it contains a reference to the current module using THIS_MODULE. Note that the declaration is already marked as static - if you need a non-static version of this you're probably doing it wrong and will break the THIS_MODULE reference by accident. | |
| #define | DEFINE_DRM_ACCEL_FOPS(name) |
| #define ACCEL_MAJOR 261 |
| #define ACCEL_MAX_MINORS 256 |
| #define DEFINE_DRM_ACCEL_FOPS | ( | name | ) |
| #define DRM_ACCEL_FOPS |
DRM_ACCEL_FOPS - Default drm accelerators file operations
This macro provides a shorthand for setting the accelerator file ops in the &file_operations structure. If all you need are the default ops, use DEFINE_DRM_ACCEL_FOPS instead.