merge_va_blocks_locked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, welcome to merge_va_blocks_locked(9) from the Kernel API Manual β€” this page is literally about one lil function. πŸ’– Its NAME-section energy is: merge_va_blocks_locked β€” merge a virtual block if possible. ✨


✨ SYNOPSIS ✨

Here’s the signature, copied exactly so nobody gets it twisted:

void merge_va_blocks_locked (struct hl_device *hdev , struct list_head
*va_list , struct hl_vm_va_block *va_block );

🫢 ARGUMENTS 🫢

Three args, no stress:

  • hdev β€” pointer to the habanalabs device structure.
  • va_list β€” pointer to the virtual addresses block list.
  • va_block β€” virtual block to merge with adjacent blocks.

πŸ’… DESCRIPTION πŸ’…

This function does the following, periodt:

  • Merge the given blocks with the adjacent blocks if their virtual ranges create a contiguous virtual range.
🚨 lock check bestie: this function should be called only when the va_list lock is taken. No sneaky unlocked calls, okay? 😭

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./drivers/accel/habanalabs/common/memory.c β€” that’s the source luv. πŸ¦‹

And the whole SEE ALSO friend group, all accounted for:


okay that’s the whole page, bestie! πŸ’– source/version: ./drivers/accel/habanalabs/common, date: October 2026 β€” merge_va_blocks_locked(9) signing off with main character energy. πŸŽ€

πŸ“¦ where this page comes from