i915_deps_add_resv(9)
π i915_deps_add_resv(9) π
okay so bestie, welcome to the i915_deps_add_resv page β this is a Kernel API Manual situation, and honestly? it's a little baby function with a big job. it grabs fences and shoves them into your dependency collection. iconic behavior, no notes. π¦
β¨ NAME β¨
i915_deps_add_resv β Add the fences of a reservation object to a dependency collection. that's literally it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
int i915_deps_add_resv (struct i915_deps *deps , struct dma_resv *resv ,
const struct ttm_operation_ctx *ctx );
look at those three little params holding hands π«Ά copy them exactly, okay? commas and spacing and all. the compiler does not care about your aesthetic. π
π ARGUMENTS π
depsβ Pointer to thei915_depsstructure a fence is to be added to. this is the collection, the little basket you're dropping fences into. main character energy fr fr. π§Ίresvβ The reservation object, then fences of which to add. yes, "then fences of which to add" β that's the page's grammar, not mine, i'm just the messenger π this is your source of fences.ctxβ Pointer to astruct ttm_operation_ctxindicating how waits are to be performed if waiting. iykyk β this is the "how do we wait, if we're waiting" manual. π
π¦ DESCRIPTION π¦
Calls i915_deps_add_depencency on the indicated fences of resv.
and yes, i915_deps_add_depencency is spelled exactly like that on the page β extra "enc" and all. don't come for me, i'm just transcribing the icon β¨ (the real one you're thinking of is over in SEE ALSO, mind the spelling there too π).
so like: take the fences marked out on resv, hand each one to that function, and they land in your deps collection. that's the whole plot. short page, short function, highkey slay. π
π₯ RETURN π₯
- Zero on success. π’
- Negative error code on error. π΄
bestie please actually check this one. a negative return is not a vibe, it's a signal that something went sideways. do not ignore it. π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/i915/i915_deps.c - Set of utilities to dynamically collect dependencies into
a(9) i915_deps_init(9)i915_deps_fini(9)i915_deps_sync(9)i915_deps_add_dependency(9)
go read the whole little i915_deps friend group, they're all obsessed with each other and honestly so am i. π
and that's the page, bestie!! πΈ this little darling lives in ./drivers/gpu/drm/i915, and the page itself is dated October 2026 β so go forth, add those fences, check those return codes, and stan a well-documented dependency collection. πβ¨π
π¦ 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