summaryrefslogtreecommitdiff
path: root/include/linux/device
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@kernel.org>2026-01-26 13:23:52 +0100
committerDanilo Krummrich <dakr@kernel.org>2026-01-26 13:23:52 +0100
commiteb3dad518e4da48ab6c6df16aa8895b8b0bd6ecf (patch)
treef960c8ab666af10bccacc947aa42f0bf3b8b54dd /include/linux/device
parent1cab0874875a1c37f71edf1e1e3029b1cf31d81e (diff)
parent63804fed149a6750ffd28610c5c1c98cce6bd377 (diff)
Merge tag 'v6.19-rc7' into driver-core-next
We need the driver-core fixes in here as well to build on top of. Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'include/linux/device')
-rw-r--r--include/linux/device/driver.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/device/driver.h b/include/linux/device/driver.h
index cd8e0f0a634b..bbc67ec513ed 100644
--- a/include/linux/device/driver.h
+++ b/include/linux/device/driver.h
@@ -85,6 +85,8 @@ enum probe_type {
* uevent.
* @p: Driver core's private data, no one other than the driver
* core can touch this.
+ * @p_cb: Callbacks private to the driver core; no one other than the
+ * driver core is allowed to touch this.
*
* The device driver-model tracks all of the drivers known to the system.
* The main reason for this tracking is to enable the driver core to match
@@ -119,6 +121,13 @@ struct device_driver {
void (*coredump) (struct device *dev);
struct driver_private *p;
+ struct {
+ /*
+ * Called after remove() and after all devres entries have been
+ * processed. This is a Rust only callback.
+ */
+ void (*post_unbind_rust)(struct device *dev);
+ } p_cb;
};