Skip to content

Conversation

@adelva1984
Copy link
Collaborator

In v6.18 upstream reworked the v4l2_fh_add() and v4l2_fh_del() calls to take the file pointer as argument and handle internally the storage of the v4l2_fh instance under file->private_data, see [1], [2] and [3].

The file pointer associated with the v4l2_fh instaces is also stored under struct virtio_media_queue_state to facilitate calls to virtio_media_session_close() from the virtio_driver->remove() context where the file isn't readily available.

Link: https://git.kernel.org/torvalds/c/47f4b1acb4d5 [1]
Link: https://git.kernel.org/torvalds/c/277966749f46 [2]
Link: https://git.kernel.org/torvalds/c/618882c92681 [3]
[adelva: reworked against tot]

In v6.18 upstream reworked the v4l2_fh_add() and v4l2_fh_del() calls to
take the file pointer as argument and handle internally the storage of
the v4l2_fh instance under file->private_data, see [1], [2] and [3].

The file pointer associated with the v4l2_fh instaces is also stored
under struct virtio_media_queue_state to facilitate calls to
virtio_media_session_close() from the virtio_driver->remove() context
where the file isn't readily available.

Link: https://git.kernel.org/torvalds/c/47f4b1acb4d5 [1]
Link: https://git.kernel.org/torvalds/c/277966749f46 [2]
Link: https://git.kernel.org/torvalds/c/618882c92681 [3]
Signed-off-by: Carlos Llamas <[email protected]>
Signed-off-by: Alistair Delva <[email protected]>
[adelva: reworked against tot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant