devm_cxl_add_region(9)
β¨ NAME β¨
okay so bestie, welcome to devm_cxl_add_region(9) from the Kernel API Manual π
this one adds a region to a decoder, and it's giving important kernel-core energy π
πΈ SYNOPSIS πΈ
struct cxl_region * devm_cxl_add_region (struct cxl_root_decoder *cxlrd
, int id , enum cxl_partition_mode mode , enum cxl_decoder_type type );
π¦ ARGUMENTS π¦
cxlrdβ the root decoder π no cap, that's the whole vibe.idβ the memregion id to create, ormemregion_freeon failure π«Άmodeβ the mode for the endpoint decoders of this region β¨typeβ select whether this is an expander or accelerator (type-2 or type-3) π
π DESCRIPTION π
This is the second step of region initialization, bestie. Regions exist within an address space which is mapped by a cxlrd π that's the whole setup, and this function is here to add one to the decoder.
π₯ RETURN π₯
Returns 0 if the region was added to the cxlrd, else returns a negative error code π
The region will be named "regionZ" where Z is the unique region number β yes, literally "regionZ", iconic naming fr fr β
π SEE ALSO π
- Kernel file
./drivers/cxl/core/region.c cxl core region(9)cxl_port_pick_region_decoder(9)cxl_port_attach_region(9)cxl_calc_interleave_pos(9)cxl_validate_translation_params(9)
made with π from ./drivers/cxl/core, October 2026 β devm_cxl_add_region(9) π§β¨
π¦ 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