[−][src]Struct vfio_bindings::bindings::vfio::vfio_device_gfx_plane_info
VFIO_DEVICE_QUERY_GFX_PLANE - _IOW(VFIO_TYPE, VFIO_BASE + 14, struct vfio_device_query_gfx_plane)
Set the drm_plane_type and flags, then retrieve the gfx plane info.
flags supported:
- VFIO_GFX_PLANE_TYPE_PROBE and VFIO_GFX_PLANE_TYPE_DMABUF are set to ask if the mdev supports dma-buf. 0 on support, -EINVAL on no support for dma-buf.
- VFIO_GFX_PLANE_TYPE_PROBE and VFIO_GFX_PLANE_TYPE_REGION are set to ask if the mdev supports region. 0 on support, -EINVAL on no support for region.
- VFIO_GFX_PLANE_TYPE_DMABUF or VFIO_GFX_PLANE_TYPE_REGION is set with each call to query the plane info.
- Others are invalid and return -EINVAL.
Note:
- Plane could be disabled by guest. In that case, success will be returned with zero-initialized drm_format, size, width and height fields.
- x_hot/y_hot is set to 0xFFFFFFFF if no hotspot information available
Return: 0 on success, -errno on other failure.
Fields
argsz: __u32
flags: __u32
drm_plane_type: __u32
drm_format: __u32
drm_format_mod: __u64
width: __u32
height: __u32
stride: __u32
size: __u32
x_pos: __u32
y_pos: __u32
x_hot: __u32
y_hot: __u32
__bindgen_anon_1: vfio_device_gfx_plane_info__bindgen_ty_1
Trait Implementations
impl Clone for vfio_device_gfx_plane_info
[src]
fn clone(&self) -> vfio_device_gfx_plane_info
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for vfio_device_gfx_plane_info
[src]
impl Default for vfio_device_gfx_plane_info
[src]
Auto Trait Implementations
impl Send for vfio_device_gfx_plane_info
impl Sync for vfio_device_gfx_plane_info
impl Unpin for vfio_device_gfx_plane_info
impl UnwindSafe for vfio_device_gfx_plane_info
impl RefUnwindSafe for vfio_device_gfx_plane_info
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,