devm_cxl_probe_mem(9)
π devm_cxl_probe_mem(9) π
okay so bestie, welcome to the Kernel API Manual entry for devm_cxl_probe_mem(9) β itβs literally giving βAdd a CXL memory device and probe its regionβ energy, and we are gonna get you comfy with it πβ¨
πΈ NAME πΈ
devm_cxl_probe_mem β Add a CXL memory device and probe its region π¦
β¨ SYNOPSIS β¨
struct cxl_memdev * devm_cxl_probe_mem (struct cxl_dev_state *cxlds ,
struct range *hpa_range );
π ARGUMENTS π
cxldsβ the CXL device state youβre associating with the memdev, bestie π«Άhpa_rangeβ the CXL.mem physical address range result, iconic β¨
π DESCRIPTION π
okay so upon return, the device will have had a chance to attach to the cxl_mem driver β but plot twist π: it may fail to attach if the CXL topology is not ready. That means hardware CXL link down, or software platform CXL root not attached. fr fr, thatβs the vibe check.
Failure to probe the memdev and/or setup a region for the memdev? Yeah, that results in this function failing. no cap, itβs a fail π
The parent of the resulting device and the devm context for allocations is cxlds->dev. Thatβs the main character for that part π
π SEE ALSO π
- Kernel file
./drivers/cxl/mem.ccxl mem(9) devm_cxl_add_classdev(9)
and thatβs the whole devm_cxl_probe_mem(9) page, bestie π source/version vibes: ./drivers/cxl; date: October 2026; manual name: devm_cxl_probe_mem(9). slay, go forth and probe responsibly β¨
π¦ 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