staging/most: video: add lock documentation comments
Subsystems (2)
PATCH 1/1 staging/most: video: add lock documentation comments
--- drivers/staging/most/video/video.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/staging/most/video/video.c +9 -0
@@ -33,6 +33,10 @@ struct most_video_dev {bool mute;struct list_head pending_mbos; +/* +* Protects the @pending_mbos list and the @mute flag while accessing +* the device from interrupt context and user‑space. +*/ spinlock_t list_lock;struct v4l2_device v4l2_dev;
@@ -40,6 +44,11 @@ struct most_video_dev {struct video_device *vdev;unsigned int ctrl_input; +/* +* Serialises configuration operations (e.g. start/stop, mute) that are +* performed from process context. This mutex is taken in the open and +* close paths as well as in any ioctls that modify the device state. +*/ struct mutex lock;wait_queue_head_t wait_data;
Signature · 1 line
2.50.1 (Apple Git-155)
On Sat, Nov 14, 2026 at 01:16:58PM +0530, Shivani Patel wrote:
Please, get familiar first on the process and required formatting. Documentation/process/ is a good start.
Signature · 2 lines
With Best Regards, Andy Shevchenko