Function drm_ffi::get_version[][src]

pub fn get_version(
    fd: RawFd,
    name_buf: Option<&mut &mut [i8]>,
    date_buf: Option<&mut &mut [i8]>,
    desc_buf: Option<&mut &mut [i8]>
) -> Result<drm_version, Error>

Gets the driver version for this device.

If any buffer is too small, this will load the maximum bytes in the buffer. If any buffer is too big, this will coerce the buffer to the proper size.