Skip to main content

krun_set_gpu_options

Function krun_set_gpu_options 

Source
pub unsafe extern "C" fn krun_set_gpu_options(
    ctx_id: u32,
    virgl_flags: u32,
) -> i32
Expand description

Enables and configures a virtio-gpu device.

Arguments: “ctx_id” - the configuration context ID. “virgl_flags” - flags to pass to virglrenderer.

Returns: Zero on success or a negative error number on failure.