xe_guc_capture_getlistsize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xe_guc_capture_getlistsize(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ this one's a function page, and honestly she's a littleδ½Žθ°ƒ queen β€” short, sweet, does exactly one thing. let's get into it 🫢


🌸 NAME 🌸

xe_guc_capture_getlistsize β€” literally just: get the list size</> for the owner/type/class combination. that's the whole vibe. πŸ’…


✨ SYNOPSIS ✨

int xe_guc_capture_getlistsize (struct xe_guc *guc , u32 owner , u32
       type , enum guc_capture_list_class_type capture_class , size_t *size );

she takes five things and gives you back an int, no cap 😌


πŸŽ€ ARGUMENTS πŸŽ€

  • guc β€” the GuC object itself, your main character πŸ’–
  • owner β€” PF/VF owner, iykyk πŸ‘‘
  • type β€” the GuC capture register type πŸ¦‹
  • capture_class β€” the GuC capture engine class id, typed as an enum guc_capture_list_class_type 🌈
  • size β€” a pointer to the size. yes bestie, a <italic>pointer</> β€” she writes into it, she doesn't return it πŸ™ˆ

πŸ”₯ DESCRIPTION πŸ”₯

so what does she actually do? this function grabs the list for that owner/type/class combination and hands you back the page aligned list size. that's it, that's the whole plot ✨ lowkey iconic for how tidy it is πŸ’…


⭐ RETURN ⭐

  • 0 β€” success, we love a clean win πŸŽ‰
  • a negative error code β€” failure, and yes she will let you know 😭

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file lives right here, go read her friends:

like, the whole GuC-error-capture</> friend group fr fr 🫢


ngl bestie, if the return value is negative, do not pretend the size you got is real. check the code, handle the error, be a responsible little kernel dev πŸ’€

and that's the page!! 🌸 source/version: ./drivers/gpu/drm/xe β€” dated October 2026</> πŸŽ€ mwah, slay, periodt πŸ’–βœ¨

πŸ“¦ where this page comes from