xe_device_create(9)
β¨ NAME β¨
okay so bestie, this is xe_device_create β the Kernel API Manual entry for it (yep, straight out of the Kernel API Manual, we love a documented kernel function π
). It's the one that creates a brand-new &xe_device instance. That's literally the whole vibe. π
π SYNOPSIS π
here's the signature, copy it exactly, no cap:
struct xe_device * xe_device_create (struct pci_dev *pdev );
π ARGUMENTS π
pdevβ the parentpci_dev. like, the pci device that's gonna be this Xe device's parent. that's the one you hand over. π«Ά
π¦ DESCRIPTION π¦
So what does it actually do, you ask? It allocates and initializes a device managed Xe device structure. that's it, that's the gig β¨ β allocate it, initialize it, and it's device managed, so the lifetime situation is handled. main character energy fr. π
πΈ RETURN πΈ
- On success? You get a pointer to the new
xe_device. slay. π - On failure? It's an
ERR_PTR. so check that thing before you dereference it, bestie, i'm begging ππ
π SEE ALSO π
the whole friend group, all of them, in order, no one gets left out π«Ά:
- Kernel file
./drivers/gpu/drm/xe/xe_device.c xe_file_get(9)xe_file_put(9)xe_is_xe_file(9)xe_device_is_admin_only(9)xe_device_init_early(9)xe_device_probe_early(9)xe_device_wmb(9)xe_device_is_l2_flush_optimized(9)xe_device_td_flush(9)xe_device_assert_mem_access(9)Xe Device Wedging(9)xe_device_set_wedged_method(9)xe_device_declare_wedged(9)xe_device_validate_wedged_mode(9)xe_wedged_mode_to_string(9)xe_device_asid_to_vm(9)
and that's the page!! β¨ brought to you by ./drivers/gpu/drm/xe, dated October 2026, and yes the page is literally called xe_device_create(9) β ok bye, go create some devices ππ¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms