xe_guc_captu...ing_and_lock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ xe_guc_capture_get_matching_and_lock(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this is one of those pages from the kernel docs, and honestly it's a whole little baddie. it's literally called xe_guc_capture_get_matching_and_lock (9) and yes the header on the page is kinda slay-truncated as xe_guc_captu...ing_and_lock(9) β€” that's just how it's printed, not a typo, iykyk πŸŽ€


🌸 NAME 🌸

xe_guc_capture_get_matching_and_lock β€” Matching GuC capture for the queue. literally what it says on the tin, no cap πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct __guc_capture_parsed_output *
xe_guc_capture_get_matching_and_lock (struct xe_exec_queue *q );

like, it hands you back a struct __guc_capture_parsed_output * and it takes a struct xe_exec_queue *q, periodt ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • q β€” the exec queue object 🫢 that's the one thing you pass in, she's the main character here

πŸ‘‘ DESCRIPTION πŸ‘‘

so what does she actually do? she searches within the capture outlist for the queue πŸ” could be used for check if GuC capture is ready for the queue β€” yes bestie, that's a vibe check on whether the GuC capture is ready for that queue πŸ‘€

and if it is found? the locked boolean of the node will be flagged 🚩 like, not me just flagging the locked boolean, but that's literally the assignment and she ate πŸ’…


πŸ’€ RETURN πŸ’€

found guc-capture node ptr else NULL β€” so you either get the found guc-capture node pointer, or you get NULL, there is no in-between, fr fr 😭

ngl bestie, always check for that NULL before you go dereferencing anything, that's a whole heartbreak waiting to happen πŸ™ˆ

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/gpu/drm/xe/xe_guc_capture.c πŸ“

and the whole friend group, obviously:


okay that's the whole page, you're officially educated πŸ§šβ€β™€οΈ this masterpiece lives over in ./drivers/gpu/drm/xe and the footer says October 2026 with the page tag xe_guc_captu...ing_and_lock(9) β€” so like, dated October 2026, iconic, no notes πŸ’œ bye bestie, go read the source, mwah πŸ“

πŸ“¦ where this page comes from