get_prefetch_end_line(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… get_prefetch_end_line โœจ

okay so bestie, we're in the Kernel API Manual today and this little function is genuinely the group chat's designated calculator ๐Ÿงฎ๐Ÿ’–


๐ŸŒธ NAME ๐ŸŒธ

get_prefetch_end_line โ€” the helper bestie that calculates your prefetch end line for you ๐ŸŽ€


โœจ SYNOPSIS โœจ

int32_t get_prefetch_end_line (uint32_t vtotal , uint16_t vblank_end ,
       uint16_t recout_y , uint8_t prefetch_relative_vblank , uint16_t
       dst_y_after_scaler );

like, that's the whole signature, no cap ๐Ÿ‘‘


๐Ÿฆ‹ ARGUMENTS ๐Ÿฆ‹

okay so the docs here are lowkey mysterious, and honestly? not me gatekeeping โ€” the manpage literally says -- undescribed -- for every single one of these, so I'm passing the tea along exactly as I got it ๐Ÿ™ˆ:

  • vtotal โ€” -- undescribed -- ๐Ÿ’€
  • vblank_end โ€” -- undescribed -- ๐Ÿ’€
  • recout_y โ€” -- undescribed -- ๐Ÿ’€
  • prefetch_relative_vblank โ€” -- undescribed -- ๐Ÿ’€
  • dst_y_after_scaler โ€” -- undescribed -- ๐Ÿ’€

no fr, that's all we've got. iconic of the documentation, honestly ๐Ÿซถ


๐Ÿ’œ DESCRIPTION ๐Ÿ’œ

okay so here's the vibe: this one is to be used by FW to calculate and store the prefetch_end_line, so it doesn't need to be computed multiple times ๐Ÿ”ฅ

like, it's giving "do the math once, then chill" โ€” main character energy efficiency โœจ


๐ŸŒˆ RETURN ๐ŸŒˆ

it calculates prefetch end given the input timing params ๐ŸŽฏ

and then, for reasons known only to the author, there's a whole dramatic row of asterisks:

***********************************************************************************************************

slay, I guess? ๐Ÿ’… (yes, that's literally in the source, I'm not kidding)


๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘

that's the whole friend group right there, go say hi to all of them ๐Ÿฆ‹๐Ÿ’–


๐Ÿ’€ real talk though: the doc says -- undescribed -- on all five args, so don't be out here guessing at what they do, bestie. facts only.

kisses, this page lives at ./drivers/gpu/drm/amd/display/... and it's dated October 2026 ๐ŸŽ€ mark your calendars, stay hydrated, and remember: get_prefetch_end_line(9) loves you ๐Ÿ’œโœจ๐ŸŒธ

๐Ÿ“ฆ where this page comes from