get_line_length(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… get_line_length β€” Kernel API Manual ✨

okay bestie, welcome to the get_line_length glow-up πŸŽ€ this lil function lives in the Kernel API Manual (yes, the big-league kernel docs, we're literally in there) and it's about to tell you exactly how many bytes wide your buffer pitch is. no cap. πŸ’–


🌸 NAME 🌸

get_line_length β€” calculates buffer pitch in bytes πŸ’«


✨ SYNOPSIS ✨

u32 get_line_length (struct i810fb_par *par , int xres_virtual , int bpp
);

like, she takes three things and gives you back a u32. iconic behavior honestly 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • par β€” a pointer to the struct i810fb_par structure. that's your whole vibe-holding struct, she needs it πŸ’…
  • xres_virtual β€” the virtual resolution of the frame. yes, virtual, not the regular one, read the name bestie πŸ™ˆ
  • bpp β€” bits per pixel. the tiny unit that decides how thicc each pixel is πŸ“

πŸ’œ DESCRIPTION πŸ’œ

She calculates the buffer pitch, in bytes. that's it. that's the whole job. lowkey a queen for doing one thing and doing it flawlessly πŸ‘‘βœ¨


πŸ”₯ SEE ALSO πŸ”₯

so the kernel file we're talking about is ./drivers/video/fbdev/i810/i810_main.c β€” go read it if you're feeling brave 😭 and then there's the whole friend group, the entire i810fb squad, all referenced here fr fr:

not a single one skipped, we don't do that here πŸ’€πŸ’–


and that's the page!! mwah 🫢 this lil rewrite came straight out of ./drivers/video/fbdev/i810 and it's dated October 2026 β€” bestie, mark your calendar, we are so ahead of schedule 🌈⭐ byeeee πŸ’…

πŸ“¦ where this page comes from