STRUCT GB_CAMERA_MODULE(9)
π 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
- 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