devm_ioremap_uc(9)
β¨ devm_ioremap_uc(9) β¨
okay so bestie, welcome to the managed ioremap glow-up π
this is the kernel API page for devm_ioremap_uc β that's the managed version of ioremap_uc(), and yes she ate π
πΈ NAME πΈ
devm_ioremap_uc β literally just ioremap_uc() but with the whole "devm" thing going on. Main character energy fr fr π
π¦ SYNOPSIS π¦
void __iomem * devm_ioremap_uc (struct device *dev , resource_size_t
offset , resource_size_t size );
like, look at her. void __iomem * return type, three args, no notes π
π ARGUMENTS π
devβ the generic device you're remapping the IO address for. she's the reason the "managed" part even works, so be nice to her π«Άoffsetβ the resource address you wanna map. the where bestie πsizeβ how big the map is. the how much β¨
π DESCRIPTION π
Managed ioremap_uc β that's the whole vibe π₯
and here's the iconic part: the map is automatically unmapped on driver detach. no manual cleanup arc, no leak era, she just handles it πβ¨ devm said "i got u" and honestly? obsessed.
π SEE ALSO π
all the siblings and cousins, go give them a read (iykyk) π§
- Kernel file
./lib/devres.cβ the source of truth, the mothership π devm_ioremap(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)devm_arch_io_reserve_memtype_wc(9)
ngl, if you're mapping IO memory without the devm version in 2026, bestie... we need to talk π
and that's the page! mwah π sign-off time: this one lives in ./lib, dated October 2026, and she's filed under devm_ioremap_uc(9) β 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