drivers/media/platform/qcom/camss/camss-video.h
Source file repositories/reference/linux-study-clean/drivers/media/platform/qcom/camss/camss-video.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/platform/qcom/camss/camss-video.h- Extension
.h- Size
- 1444 bytes
- Lines
- 59
- Domain
- Driver Families
- Bucket
- drivers/media
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/mutex.hlinux/videodev2.hmedia/media-entity.hmedia/v4l2-dev.hmedia/v4l2-device.hmedia/v4l2-fh.hmedia/v4l2-mediabus.hmedia/videobuf2-v4l2.h
Detected Declarations
struct camss_bufferstruct camss_videostruct camss_video_opsstruct camss_video
Annotated Snippet
struct camss_buffer {
struct vb2_v4l2_buffer vb;
dma_addr_t addr[3];
struct list_head queue;
};
struct camss_video;
struct camss_video_ops {
int (*queue_buffer)(struct camss_video *vid, struct camss_buffer *buf);
int (*flush_buffers)(struct camss_video *vid,
enum vb2_buffer_state state);
};
struct camss_video {
struct camss *camss;
struct vb2_queue vb2_q;
struct video_device vdev;
struct media_pad pad;
struct v4l2_format active_fmt;
enum v4l2_buf_type type;
struct media_pipeline pipe;
const struct camss_video_ops *ops;
struct mutex lock;
struct mutex q_lock;
unsigned int bpl_alignment;
unsigned int line_based;
const struct camss_format_info *formats;
unsigned int nformats;
};
int msm_video_register(struct camss_video *video, struct v4l2_device *v4l2_dev,
const char *name);
void msm_video_unregister(struct camss_video *video);
#endif /* QC_MSM_CAMSS_VIDEO_H */
Annotation
- Immediate include surface: `linux/mutex.h`, `linux/videodev2.h`, `media/media-entity.h`, `media/v4l2-dev.h`, `media/v4l2-device.h`, `media/v4l2-fh.h`, `media/v4l2-mediabus.h`, `media/videobuf2-v4l2.h`.
- Detected declarations: `struct camss_buffer`, `struct camss_video`, `struct camss_video_ops`, `struct camss_video`.
- Atlas domain: Driver Families / drivers/media.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.