STRUCT GSC_INPUT_BUF(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct gsc_input_buf β€” the driver's video buffer πŸ’–

Okay so this is a page from the Kernel API Manual, bestie, and it's genuinely short and sweet β€” it's all about struct gsc_input_buf(9), which the manpage literally calls "the driver's video buffer". That's it, that's the whole vibe. It's the thing that holds your video frame while the G-Scaler does its little glow-up on it. ✨


🌸 NAME 🌸

struct gsc_input_buf β€” the driver's video buffer, periodt. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

Here's the whole struct, exactly as it lives, no cap:

struct gsc_input_buf {
    struct vb2_v4l2_buffer vb;
    struct list_head        list;
    int idx;
 };

That's three whole members. Not me being obsessed with a three-member struct, but like... it's iconic in its minimalism. πŸ’…


πŸ‘‘ Members πŸ‘‘

These are the good bits, one by one:

  • vb β€” the videobuf2 buffer. This is the actual video buffer payload, the main character of the whole struct. 🌈
  • list β€” a linked list structure for buffer queue. Lowkey the glue that keeps everything chained together in the queue. πŸ”—
  • idx β€” index of G-Scaler input buffer. Just a lil int telling you which slot this buffer is chillin' in. ⭐
Fr fr, that's every single member β€” there's no secret fourth one hiding down there. If it's not in the struct above, it doesn't exist. πŸ™ˆ

🫢 SEE ALSO 🫢

The Kernel file holding the real ones is:

./drivers/media/platform/samsung/exynos-gsc/gsc-core.h

And it wants you to go meet the whole friend group β€” enum gsc_datapath(9), struct gsc_fmt(9), struct gsc_addr(9), struct gsc_scaler(9), struct gsc_frame(9), struct gsc_m2m_device(9), struct gsc_pix_max(9), struct gsc_pix_min(9), struct gsc_driverdata(9), struct gsc_dev(9), and struct gsc_ctx(9). Go say hi, they don't bite. πŸ’œ


πŸ’€ Sign-off πŸ’€

This lil beauty comes to you from ./drivers/media/platform/samsu... (yes the footer truncates it like that, blame the terminal width 😭) and it's dated October 2026. Anyway bestie, go forth and scale those G's. Slay. πŸ§šβ€β™€οΈπŸ”₯πŸ“

πŸ“¦ where this page comes from