Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jul 2025 03:22:39 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 16c6a3444a19 - main - LinuxKPI: device.h add (*shutdown)
Message-ID:  <202507040322.5643Md3E079619@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=16c6a3444a1913e01ce0fce4257c52b5969da10a

commit 16c6a3444a1913e01ce0fce4257c52b5969da10a
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2024-07-29 16:10:29 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-07-04 03:22:22 +0000

    LinuxKPI: device.h add (*shutdown)
    
    There are too many ways to call (*shutdown)() and others in Linux
    it seems;  rather than using the one from dev_pm_ops or directly
    on the bus system device, some wireless drivers are setting it on
    struct device_driver so add it.
    
    Bump __FreeBSD_version as this changes the size of various other
    structs which have struct device_driver embedded.
    
    Sponsored by:   The FreeBSD Foundation
    Reviewed by:    dumbbell
    Differential Revision: https://reviews.freebsd.org/D50679
---
 sys/compat/linuxkpi/common/include/linux/device.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/device.h b/sys/compat/linuxkpi/common/include/linux/device.h
index a5f6874a07f6..2556b0c45e49 100644
--- a/sys/compat/linuxkpi/common/include/linux/device.h
+++ b/sys/compat/linuxkpi/common/include/linux/device.h
@@ -90,6 +90,8 @@ struct dev_pm_ops {
 struct device_driver {
 	const char	*name;
 	const struct dev_pm_ops *pm;
+
+	void (*shutdown) (struct device *);
 };
 
 struct device_type {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202507040322.5643Md3E079619>