STRUCT GSC_DRIVERDATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct gsc_driverdata(9) ✨

okay so bestie, welcome to the struct gsc_driverdata(9) page from the Kernel API Manual (that's section 9, the kernel-API girlies πŸ’…). this is the per-device-type driver data you hand over at init time β€” like the little info card your driver fills out before the party starts πŸŽ€


🌸 NAME 🌸

struct gsc_driverdata β€” per device type driver data for init time. that's it, that's the whole vibe ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

struct gsc_driverdata {
    struct gsc_variant *variant[GSC_MAX_DEVS];
    const char      *clk_names[GSC_MAX_CLOCKS];
    int num_clocks;
    int num_entities;
 };

no cap, that's the whole struct β€” four fields, iconic behavior πŸ‘‘


πŸ’– Members πŸ’–

  • variant β€” the variant information for this driver. it's an array of pointers: struct gsc_variant *variant[GSC_MAX_DEVS], so you get up to GSC_MAX_DEVS of them 🫢
  • clk_names β€” clock names, literally. const char *clk_names[GSC_MAX_CLOCKS] β€” room for GSC_MAX_CLOCKS of them ⭐
  • num_clocks β€” the number of clocks in clk_names. yes bestie, it's the count for the array above, they're a matching set πŸŽ€
  • num_entities β€” the number of g-scalers πŸ”₯

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/media/platform/samsung/exynos-gsc/gsc-core.h, plus the whole friend group:

  • enum gsc_datapath(9)
  • struct gsc_fmt(9)
  • struct gsc_input_buf(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_dev(9)
  • struct gsc_ctx(9)

go read them all, i'll wait πŸ’œ


mwah πŸ’‹ that's the page! brought to you by ./drivers/media/platform/samsu... (yes it's truncated in the source, don't come for me πŸ™ˆ), dated October 2026 β€” and it's still struct gsc_driverdata(9) energy all the way down. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from