Thread (10 messages) 10 messages, 3 authors, 3h ago

Re: [PATCH 3/5] hwmon: Add a generic interface for userspace implementations

flat view

From: Markus Elfring <hidden>
Date: 2026-10-10 14:50:59
Also in: linux-doc, linux-hwmon, lkml

…
quoted hunk ↗ jump to hunk
+++ b/drivers/hwmon/uhwmon.c
@@ -0,0 +1,641 @@
…
quoted hunk ↗ jump to hunk
+static void uhwmon_disconnect(struct uhwmon_device *data)
+{
+	mutex_lock(&data->lock);
+	data->online = false;
…
quoted hunk ↗ jump to hunk
+	mutex_unlock(&data->lock);
+	wake_up_all(&data->wait);
+}
…

Under which circumstances would you become interested to apply a statement
like “guard(mutex)(&data->lock);”?
https://elixir.bootlin.com/linux/v7.3-rc6/source/include/linux/mutex.h#L253

Regards,
Markus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help