do_get_kexec_buffer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– do_get_kexec_buffer(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ this one's a little function from the device-tree side of the kernel, and honestly it's giving "small but crucial" energy πŸŽ€


🌸 NAME 🌸

do_get_kexec_buffer β€” grab the address and size out of a device tree property πŸ¦‹

like, it literally reads a property and hands you back where it lives and how big it is. that's the whole vibe πŸ’…


✨ SYNOPSIS ✨

int do_get_kexec_buffer (const void *prop , int len , unsigned long
*addr , size_t *size );

yes the signature really is formatted like that, we don't gatekeep 😌


🫢 ARGUMENTS 🫢

  • prop β€” the device tree property itself πŸ’– the actual blob you're pulling from
  • len β€” size of prop, so the function knows how much property it's looking at
  • addr β€” out-param city πŸ™οΈ it returns the address of the node through this pointer
  • size β€” also an out-param, and it returns the size of the node here 🌸

so you pass in the property + its length, and you get back the address and size of the node. two in, two out. balanced. iconic πŸ‘‘


⭐ RETURN ⭐

0 on success πŸŽ‰ or a negative errno on error 😭 (ngl, always check it, bestie β€” 0 is the only happy number here)


πŸ¦‹ SEE ALSO πŸ¦‹

read the whole little family, they all belong together fr fr 🌈


lowkey reminder: do_get_kexec_buffer only reads the property into addr and size β€” don't go assuming it does anything else, because it doesn't 🫢

and that's the page, bestie πŸ’…βœ¨ it lives in ./drivers/of, and this lil drop is dated October 2026 β€” go forth and read your device tree properties with confidence πŸ‘‘πŸŽ€πŸ’–

πŸ“¦ where this page comes from