svm_range_split_adjust(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« svm_range_split_adjust(9) πŸ’«

okay so bestie, this is a page straight out of the Kernel API Manual β€” section 9, kernel API vibes only β€” and it's all about svm_range_split_adjust. it's giving "niche GPU driver helper that absolutely slays". let's get into it πŸŽ€


🌸 NAME 🌸

svm_range_split_adjust β€” split range and adjust. that's literally the whole thing. short, sweet, iconic.


✨ SYNOPSIS ✨

int svm_range_split_adjust (struct svm_range *new , struct svm_range
*old , uint64_t start , uint64_t last );

four args, one int coming back at you. no cap. 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • new β€” the new range. fresh out of the box, main character energy.
  • old β€” the old range. the og. respect it.
  • start β€” the old range adjust to start address in pages.
  • last β€” the old range adjust to last address in pages.

πŸ’… DESCRIPTION πŸ’…

so here's the tea: this function copies system memory dma_addr or vram ttm_res in the old range over to the new range, starting from new_start up to size new->npages. the remaining old range is from start to last. lowkey surgical. literally splitting and adjusting at the same time, which is kind of a flex ngl πŸ’–


πŸ”₯ RETURN πŸ”₯

  • 0 β€” OK, we ate. ✨
  • -ENOMEM β€” out of memory 😭
fr fr, that's the whole return contract. two outcomes. no in-between.

πŸ‘‘ SEE ALSO πŸ‘‘

bestie these are the sibling functions, and yes you should read them too:


and that's the page! πŸ’œ brought to you by the fine folks at ./drivers/gpu/drm/amd/amdkfd, October 2026 edition β€” svm_range_split_adjust(9), periodt. 🧚⭐

πŸ“¦ where this page comes from