cxl_endpoint_decoder_alloc(9)
π cxl_endpoint_decoder_alloc π
okay bestie so we're in the Kernel API Manual and the function we're stanning today is cxl_endpoint_decoder_alloc β it's literally the glow-up step where an endpoint decoder gets allocated β¨ like, before it's a real registered decoder it's just a baby in the allocator, and that's this function's whole job π
πΈ SYNOPSIS πΈ
struct cxl_endpoint_decoder * cxl_endpoint_decoder_alloc (struct cxl_port *port );
no cap, that's the whole signature π«Ά
β¨ ARGUMENTS β¨
portβ the owning port of this decoder, aka the main character whose decoder this is π
π¦ RETURN π¦
you get back a shiny new cxl decoder, and the plan is that it gets registered by cxl_decoder_add π (yes queen, alloc then add, that's the pipeline π₯)
lowkey important: this is the to-be-registered era, so don't think it's already wired up β cxl_decoder_add comes later, fr fr.
π SEE ALSO π
like a whole friend group of related calls, and you're gonna want the receipts:
- Kernel file
./drivers/cxl/core/port.c cxl core(9)devm_cxl_add_port(9)devm_cxl_add_dport(9)devm_cxl_add_rch_dport(9)cxl_add_ep(9)find_cxl_port_by_dport(9)find_cxl_port_by_uport(9)cxl_decoder_init(9)cxl_root_decoder_alloc(9)cxl_switch_decoder_alloc(9)cxl_decoder_add_locked(9)cxl_decoder_add(9)__cxl_driver_register(9)cxl_endpoint_get_perf_coordinates(9)
π okay that's the whole page bestie, go forth and allocate π
and for the cute sign-off π: this one lives in ./drivers/cxl/core, dated October 2026, from the Kernel API Manual β iconic, periodt β
π¦ 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