dma_resv_get_fences(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dma_resv_get_fences(9) ✨

okay so this is a page from the Kernel API Manual, and bestie, we're talking about dma_resv_get_fences(9) β€” she's the one who grabs an object's fences fences without the update side lock held. yes, the NAME literally says "fences fences," no cap, that's what it says, we don't ask questions 🫢


🌸 NAME 🌸

dma_resv_get_fences β€” get an object's fences fences without update side lock held

like... she gets you the fences. unlocked. iconic behaviour fr fr πŸ’…


✨ SYNOPSIS ✨

int dma_resv_get_fences (struct dma_resv *obj , enum dma_resv_usage
usage , unsigned int *num_fences , struct dma_fence ***fences );

that's the whole signature, copy it exactly, don't be weird about it πŸŽ€


πŸŽ€ ARGUMENTS πŸŽ€

  • obj β€” the reservation object. the main character of this whole situation πŸ‘‘
  • usage β€” controls which fences to include. see enum dma_resv_usage for the deets, iykyk.
  • num_fences β€” the number of fences returned. she's telling you how many you got πŸ“
  • fences β€” the array of fence ptrs returned. the array is krealloc'd to the required size, and must be freed by the caller. that's you. you're the caller. don't forget. 😭
not me reminding you again: the caller frees it. the caller frees it. the caller frees it. πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

Retrieve all fences from the reservation object. that's it, that's the job, and she does it without the update side lock held β€” main character energy only ✨

Returns either zero or -ENOMEM. that's the whole return menu, two options, pick one πŸ’€


🌈 SEE ALSO 🌈

the whole friend group, all linked up, obsessed honestly πŸ’œ


k that's the page!! sourced from ./drivers/dma-buf, dated October 2026, signed off as dma_resv_get_fences(9) β€” mwah, go free your fences bestie πŸ§šπŸ’–

πŸ“¦ where this page comes from