struct vb2_buf_ops — driver-specific callbacks
struct vb2_buf_ops { int (* verify_planes_array) (struct vb2_buffer *vb, const void *pb); void (* fill_user_buffer) (struct vb2_buffer *vb, void *pb); int (* fill_vb2_buffer) (struct vb2_buffer *vb, const void *pb,struct vb2_plane *planes); void (* copy_timestamp) (struct vb2_buffer *vb, const void *pb); };
Verify that a given user space structure contains enough planes for the buffer. This is called for each dequeued buffer.
given a vb2_buffer fill in the userspace structure. For V4L2 this is a struct v4l2_buffer.
given a userspace structure, fill in the vb2_buffer. If the userspace structure is invalid, then this op will return an error.
copy the timestamp from a userspace structure to the vb2_buffer struct.