xe_guc_klv_parser(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

โœจ xe_guc_klv_parser(9) โœจ

okay so this is a page from the Kernel API Manual, and today's main character is xe_guc_klv_parser ๐Ÿ’…


๐Ÿ’– NAME ๐Ÿ’–

xe_guc_klv_parser โ€” bestie, it parses and decodes a whole stream of KLVs. that's it. that's the job. no cap. ๐ŸŽ€


๐ŸŒธ SYNOPSIS ๐ŸŒธ

int xe_guc_klv_parser (const u32 *klvs , u32 num_dwords , void *obj ,
       int (*decoder)(void *obj, u16 key, u16 len, const u32 *value) );

likeโ€ฆ look at that signature. it's giving "i take my callback responsibilities very seriously" ๐Ÿ”ฅ


๐Ÿฆ‹ ARGUMENTS ๐Ÿฆ‹

  • klvs โ€” the buffer that's holding all your KLVs, bestie. that's the whole vibe right there.
  • num_dwords โ€” how many dwords (u32, literally u32) you actually have available in that buffer. don't be out here lying about it. ๐Ÿ™ˆ
  • obj โ€” an opaque pointer that just gets handed off to the decoder function. it's very "you don't need to know me, i'm just here for the callback" โœจ
  • decoder โ€” pointer to the decoder function itself. the callback. the icon. the one doing the actual decoding work. ๐Ÿ‘‘

โญ RETURN โญ

so what do you get back? it returns the sum of all the results returned by the decoder โ€” like, it literally adds them all up, obsessed ๐Ÿ’– โ€” or, if things go sideways, an -errno on a decoder failure or a buffer failure ๐Ÿ˜ญ

lowkey important: it's a sum, not just the last one. maths is happening. respect it. ๐Ÿงฎ

๐ŸŒˆ SEE ALSO ๐ŸŒˆ

fr fr go read all of them, they're the whole friend group ๐Ÿซถ


okay that's the page!! sourced from the ./drivers/gpu/drm/xe directory, dated October 2026, and it's xe_guc_klv_parser(9) โ€” slay, bye bestie ๐Ÿ’œ๐ŸŽ€โญ

๐Ÿ“ฆ where this page comes from