git: a7ac5ba799c7 - stable/14 - LinuxKPI: netdevice add attach/detach skeleton functions
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 16 Jan 2026 19:41:21 UTC
The branch stable/14 has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=a7ac5ba799c74f34effc88e7161873777d3675d8
commit a7ac5ba799c74f34effc88e7161873777d3675d8
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-10-17 20:28:36 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-01-16 19:37:53 +0000
LinuxKPI: netdevice add attach/detach skeleton functions
For the moment add skeleton functions for netif_device_attach/detach()
needed by rtw8[89] v6.17.
(cherry picked from commit 5ea941a4fbfd1ba2483e47fe30ed6713fe912284)
(cherry picked from commit 4bdd0e51d7113aadcbfba9a76d72d8e924c5dcdf)
---
sys/compat/linuxkpi/common/include/linux/netdevice.h | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/sys/compat/linuxkpi/common/include/linux/netdevice.h b/sys/compat/linuxkpi/common/include/linux/netdevice.h
index cd7d23077a62..2e9fa910cf5a 100644
--- a/sys/compat/linuxkpi/common/include/linux/netdevice.h
+++ b/sys/compat/linuxkpi/common/include/linux/netdevice.h
@@ -478,6 +478,21 @@ netdev_priv(const struct net_device *ndev)
return (__DECONST(void *, ndev->drv_priv));
}
+/* -------------------------------------------------------------------------- */
+
+static __inline void
+netif_device_attach(struct net_device *ndev)
+{
+ pr_debug("%s: TODO\n", __func__);
+}
+
+static __inline void
+netif_device_detach(struct net_device *ndev)
+{
+ pr_debug("%s: TODO\n", __func__);
+}
+
+
/* -------------------------------------------------------------------------- */
/* This is really rtnetlink and probably belongs elsewhere. */