STRUCT GB_CAMERA_MODULE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct gb_camera_module(9) πŸ’–

okay so welcome to the Kernel API Manual, bestie β€” this is the page for struct gb_camera_module, and it's giving main-character struct energy, fr fr. πŸŽ€βœ¨

🌸 NAME 🌸

struct gb_camera_module β€” represents greybus camera module. that's the vibe: it's the struct that stands for a greybus camera module. πŸ’…

✨ SYNOPSIS ✨

struct gb_camera_module {
    void *priv;
    const struct gb_camera_ops *ops;
    unsigned int interface_id;
    struct kref refcount;
    void (*release)(struct kref *kref);
    struct list_head list;
};

πŸŽ€ Members πŸŽ€

okay let's meet the members one by one, no cap:

  • void *priv β€” module private data, and it gets passed to all camera operations. that's its whole thing. 🫢
  • const struct gb_camera_ops *ops β€” greybus camera operation callbacks. iconic behavior. ✨
  • unsigned int interface_id β€” interface id of the module. yep, that one. πŸ’…
  • struct kref refcount β€” reference counting object. lowkey essential. πŸ”₯
  • void (*release)(struct kref *kref) β€” module release function. periodt. 🧚
  • struct list_head list β€” list entry in the camera modules list. linking the squad together. πŸ¦‹

πŸ”­ SEE ALSO πŸ”­

go peek at these, iykyk:

  • Kernel file ./drivers/staging/greybus/gb-camera.h
  • struct gb_camera_stream(9)
  • struct gb_camera_csi_params(9)
  • struct gb_camera_ops(9)

that's the whole page, bestie πŸ’– shoutout to the source ./drivers/staging/greybus, dated October 2026 β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from