resource_set_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

resource_set_size(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual page for resource_set_size(9) πŸ¦‹ this one is short, sweet, and does exactly one little resource-math job. let’s get into it πŸ’–


✨ NAME ✨

resource_set_size β€” Calculate resource end address from size and start


πŸŽ€ SYNOPSIS πŸŽ€

void resource_set_size (struct resource *res , resource_size_t size );

🌸 ARGUMENTS 🌸

  • res β€” Resource descriptor. the resource cutie we’re working with 🫢
  • size β€” Size of the resource. the size value going into the calculation ✨

πŸ’œ DESCRIPTION πŸ’œ

Calculate the end address for res based on size. that’s the whole vibe: you give it the size, and it sorts out the end address for the resource πŸ’«


πŸ”₯ NOTE πŸ”₯

The start address of res must be set when calling this function. Prefer resource_set_range if setting both the start address and size.

no cap, that’s important β€” the start address has to be set already when you call this one. and if you’re setting both the start address and the size, bestie, use resource_set_range instead πŸ’…


🫢 SEE ALSO 🫢


okay that’s the whole page, bestie πŸŽ€βœ¨ source/version: ./include/linux; date: October 2026. go slay some resource math πŸ’–πŸ’…

πŸ“¦ where this page comes from