panthor_vm_map_bo_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ panthor_vm_map_bo_range(9) ✨

okay so bestie, this is a page from the Kernel API Manual and it's all about panthor_vm_map_bo_range β€” literally the function that maps a chunk of a GEM object into a VM. it's giving very "behind the scenes" energy, and we're gonna get into it πŸ’…


πŸŽ€ NAME πŸŽ€

panthor_vm_map_bo_range β€” Map a GEM object range to a VM πŸ—ΊοΈ


🌸 SYNOPSIS 🌸

int panthor_vm_map_bo_range (struct panthor_vm *vm , struct
       panthor_gem_object *bo , u64 offset , u64 size , u64 va , u32 flags );

like... look at that signature. six whole arguments. no cap, she's thorough 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • vm β€” the VM you're mapping the GEM to. the destination vibe ✨
  • bo β€” the GEM object you're mapping. the main character of this operation πŸ‘‘
  • offset β€” the offset in the GEM object. where inside bo we're starting from, iykyk
  • size β€” how much you're mapping. the size. bestie it's literally the size πŸ’€
  • va β€” the virtual address you're mapping the object to. the landing spot πŸ“
  • flags β€” a combination of drm_panthor_vm_bind_op_flags flags. and listen β€” only map-related flags are valid here. do not come in here with unmap flags, that is not the assignment πŸ™ˆ

πŸ’– DESCRIPTION πŸ’–

Internal use only. periodt. this is the private little helper, not the front door πŸšͺ

so if you're a userspace request wanting to do a bind, you don't call this β€” you use panthor_vm_bind_exec_sync_op instead. she's the one who handles the public-facing stuff, so go talk to her πŸ’…

fr fr, if you're holding this page wondering "should I call this from userspace," the answer is no. the manpage said internal use only and it meant it 😭

⭐ RETURN ⭐

0 on success, and a negative error code otherwise. that's it, that's the whole deal. slay πŸ’―


πŸ”₯ SEE ALSO πŸ”₯

the whole friend group came out for this one, so let's give them their moment 🌈

Kernel file ./drivers/gpu/drm/panthor/panthor_mmu.c, plus:


and that's the whole page bestie 🫢 sourced from ./drivers/gpu/drm/panthor, dated October 2026, and it's panthor_vm_map_bo_range(9) signing off πŸ’œβœ¨ go map something responsibly 🧚

πŸ“¦ where this page comes from