devm_request...e_mem_region(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

Hey bestie, welcome to the devm_request...e_mem_region(9) page from the Kernel API Manual ✨

devm_request_free_mem_region β€” find free region for device private memory πŸ’–


✨ SYNOPSIS ✨

okay so the signature is literally:

struct resource * devm_request_free_mem_region (struct device *dev , struct resource *base , unsigned long size );

πŸŽ€ ARGUMENTS πŸŽ€

It’s giving three arguments, no cap:

  • dev β€” device struct to bind the resource to 🫢
  • base β€” resource tree to look in 🌈
  • size β€” size in bytes of the device memory to add πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

So what does it do? This function tries to find an empty range of physical address big enough to contain the new resource, so that it can later be hotplugged as ZONE_DEVICE memory, which in turn allocates struct pages. That’s the whole plot, periodt πŸ”₯


πŸ’œ SEE ALSO πŸ’œ

The kernel file is ./kernel/resource.c, and the resource-core guest list is:


okay that’s the page, bestie πŸ’– shoutout to the ./kernel source and the October 2026 date stamp, and this icon is devm_request...e_mem_region(9) β€” slay πŸŽ€βœ¨

πŸ“¦ where this page comes from