Struct drm_sys::drm_event [] [src]

#[repr(C)]
pub struct drm_event { pub type_: __u32, pub length: __u32, }

Header for events written back to userspace on the drm fd. The type defines the type of event, the length specifies the total length of the event (including the header), and user_data is typically a 64 bit value passed with the ioctl that triggered the event. A read on the drm fd will always only return complete events, that is, if for example the read buffer is 100 bytes, and there are two 64 byte events pending, only one will be returned.

Event types 0 - 0x7fffffff are generic drm events, 0x80000000 and up are chipset specific.

Fields

Trait Implementations

impl Debug for drm_event
[src]

Formats the value using the given formatter.

impl Default for drm_event
[src]

Returns the "default value" for a type. Read more

impl Copy for drm_event
[src]

impl Clone for drm_event
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more