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
type_: __u32
length: __u32
Trait Implementations
impl Debug for drm_event
[src]
impl Default for drm_event
[src]
impl Copy for drm_event
[src]
impl Clone for drm_event
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more