STRUCT GSC_INPUT_BUF(9)
π 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β alinked 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms