add_memory_driver_managed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

add_memory_driver_managed(9)

okay so bestie πŸ’– this one is from the Kernel API Manual, and it’s all about adding driver-managed memory. It’s giving kernel-internals main character energy, but the facts are simple β€” let’s go ✨


✨ NAME ✨

add_memory_driver_managed β€” add driver-managed memory 🫢


🌸 SYNOPSIS 🌸

int add_memory_driver_managed (int nid , u64 start , u64 size , const
       char *resource_name , mhp_t mhp_flags );

πŸŽ€ ARGUMENTS πŸŽ€

  • nid β€” NUMA node ID where the memory will be added.
  • start β€” Start physical address of the memory range.
  • size β€” Size of the memory range in bytes.
  • resource_name β€” Resource name in format "System RAM ($DRIVER)".
  • mhp_flags β€” Memory hotplug flags.

πŸ¦‹ DESCRIPTION πŸ¦‹

Add driver-managed memory with the system default online type set by build config or kernel boot parameter. No cap, that’s literally the whole vibe check πŸ’…

See __add_memory_driver_managed for more details. iykyk ✨


⭐ RETURN ⭐

0 on success, negative error code on failure. periodt πŸ’–


🌈 SEE ALSO 🌈

Kernel file ./mm/memory_hotplug.c β€” and the related crew is:


Cute lil sign-off: source ./mm, date October 2026, page add_memory_driver_managed(9) β€” stay hydrated and hotplug responsibly πŸ’…βœ¨

πŸ“¦ where this page comes from