search for: try_pin_init

Displaying 1 result from an estimated 1 matches for "try_pin_init".

2025 Feb 03
0
[PATCH 1/2] gpu: nova-core: add initial driver stub
...\n"); >> + >> + pdev.enable_device_mem()?; >> + pdev.set_master(); >> + >> + let bar = pdev.iomap_region_sized::<BAR0_SIZE>(0, c_str!("nova-core"))?; >> + >> + let this = KBox::pin_init( >> + try_pin_init!(Self { >> + gpu <- Gpu::new(pdev, bar)?, Here. Try to construct a Gpu, which tries to construct a GpuSpec, which fails out if Chipset is not listed, or if CardType (which should be renamed to Architecture) is not listed. And only Turing+ GPUs are listed. Turing is the fir...