resource_set_size(9)
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 ofresmust be set when calling this function. Preferresource_set_rangeif 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 π«Ά
- Kernel file
./include/linux/ioport.hβresource_alignf(9),struct resource_constraint(9),resource_set_range(9)
okay thatβs the whole page, bestie πβ¨ source/version: ./include/linux; date: October 2026. go slay some resource math ππ
π¦ 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