devm_arch_i...e_memtype_wc(9)
π devm_arch_i...e_memtype_wc β the Kernel API Manual, section 9, bestie π
okay so real talk, this is devm_arch_io_reserve_memtype_wc(9) from the Kernel API Manual, section 9, and she's literally the managed, devres-flavoured version of her non-managed sister. same energy, way less cleanup stress. periodt. β¨
πΈ NAME πΈ
devm_arch_io_reserve_memtype_wc β the managed glow-up of arch_io_reserve_memtype_wc(). it's giving "i'll handle the release for you so you can live your life." π«Ά
β¨ SYNOPSIS β¨
int devm_arch_io_reserve_memtype_wc (struct device *dev ,
resource_size_t start , resource_size_t size );
π ARGUMENTS π
devβ the managed device, aka the main character whose lifetime this whole thing is tied to. everything gets cleaned up when she leaves. π¦startβ memory base address. where the party starts, literally.sizeβ size of the memory range. how much of the vibe we're reserving. π
π DESCRIPTION π
so what she does is: she reserves a memory range with WC caching by calling through to arch_io_reserve_memtype_wc, and then she sets up a release callback for you. π iconic. that's the managed part β you don't have to remember to undo it yourself, because she remembers for you. no cap.
if you want the whole deep-dive on the actual reservation behaviour, the page says to go see arch_io_reserve_memtype_wc for more information. she's not gonna repeat her sister's whole story, iykyk. π
π₯ SEE ALSO π₯
- Kernel file
./lib/devres.c devm_ioremap(9)devm_ioremap_uc(9)devm_ioremap_wc(9)devm_iounmap(9)devm_ioremap_resource(9)devm_ioremap_resource_wc(9)devm_ioport_map(9)devm_ioport_unmap(9)devm_arch_phys_wc_add(9)
like, the whole devres friend group showed up. love that for them. π
mwah π this lil' page lives in ./lib, and the version date on it is October 2026 β so yeah, she's from the future and she's still slaying. catch you in section 9, bestie πβ¨
π¦ 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