xe_guc_captu...ing_and_lock(9)
β¨ 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:
xe_guc_capture_getlistsize(9)xe_guc_capture_getlist(9)xe_guc_capture_getnullheader(9)xe_guc_capture_ads_input_worst_size(9)- Init, G2H-event and reporting flows for GuC-error-capture(9)
xe_engine_manual_capture(9)xe_engine_snapshot_print(9)xe_engine_snapshot_capture_for_queue(9)
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
- 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