History log of /src/sys/compat/linuxkpi/common/include/linux/device.h (Results 1 – 25 of 130)
Revision Date Author Comments
# fc9666d0 03-Dec-2025 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: device: add a pr_debug("TODO") call to device_release_driver()

The logic in device_release_driver() got disabled in 93b14194acaf2
and since left alone. Add a pr_debug() call so we have a

LinuxKPI: device: add a pr_debug("TODO") call to device_release_driver()

The logic in device_release_driver() got disabled in 93b14194acaf2
and since left alone. Add a pr_debug() call so we have a chance to
notice if that code is actually still in need to be fixed and re-enabled.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

show more ...


# 8ea366f4 11-Oct-2025 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: device_driver add (*coredump)()

Needed by multiple wireless driver for the v6.17 update (likely earlier
versions already).

MFC after: 3 days
Reviewed by: dumbbell
Differential Revision: h

LinuxKPI: device_driver add (*coredump)()

Needed by multiple wireless driver for the v6.17 update (likely earlier
versions already).

MFC after: 3 days
Reviewed by: dumbbell
Differential Revision: https://reviews.freebsd.org/D53206

show more ...


# 4ab64e34 04-Sep-2025 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: devres: divorce dem_kfree from lkpi_devm_kmalloc_release

dem_kfree() is called from all over the place and should actually
do something; contrary to lkpi_devm_kmalloc_release() it can als

LinuxKPI: devres: divorce dem_kfree from lkpi_devm_kmalloc_release

dem_kfree() is called from all over the place and should actually
do something; contrary to lkpi_devm_kmalloc_release() it can also
take a const void *. We have to __DECONST() that though as the
entire devres framework does otherwise not take a const argument.

This was discovered during the rtw89 upadte to 6.16.

Sponsored by: The FreeBSD Foundation (initially)
MFC after: 3 days
Reviewed by: dumbbell
Differential Revision: https://reviews.freebsd.org/D52082

show more ...


# 16c6a344 29-Jul-2024 Bjoern A. Zeeb <bz@FreeBSD.org>

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 w

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

show more ...


# 8bdb76f2 01-Jan-2025 Jean-Sébastien Pédron <dumbbell@FreeBSD.org>

linuxkpi: Add `dev_is_removable()`

[Why]
This is used by the amdgpy DRM driver starting from Linux 6.7.

[How]
The function always returns false, like `pci_is_thunderbolt_attached()`
because we don'

linuxkpi: Add `dev_is_removable()`

[Why]
This is used by the amdgpy DRM driver starting from Linux 6.7.

[How]
The function always returns false, like `pci_is_thunderbolt_attached()`
because we don't have an API for this in FreeBSD yet.

Reviewed by: manu
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D48758

show more ...


# 1fe7cd02 21-Jul-2024 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Remove owner argument from class_create function on KBI layer

To chase Linux 6.4

Sponsored by: Serenity Cyber Security, LLC
Differential Revision: https://reviews.freebsd.org/D45849


# a1181662 21-Jul-2024 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Add devm_device_add_group to linux/device.h

devm_device_add_group creates a managed attribute group for a device.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by:

LinuxKPI: Add devm_device_add_group to linux/device.h

devm_device_add_group creates a managed attribute group for a device.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D45845

show more ...


# 460908ea 26-Jun-2024 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Remove owner argument from class_create function on KPI layer

to chase Linux 6.4

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: manu, emaste
Differential Revisi

LinuxKPI: Remove owner argument from class_create function on KPI layer

to chase Linux 6.4

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: manu, emaste
Differential Revision: https://reviews.freebsd.org/D45610

show more ...


# 170c2e0e 02-Apr-2024 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: add devm_kfree()

mt76 calls devm_kfree() directly, so alias it to our
lkpi_devm_kmalloc_release() function.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential Revision: h

LinuxKPI: add devm_kfree()

mt76 calls devm_kfree() directly, so alias it to our
lkpi_devm_kmalloc_release() function.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D44589

show more ...


# 3208d4ad 08-Apr-2024 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Import vanilla linux/overflow.h

It is dual-licensed (GPLv2 & MIT) and self-contained header file.
No need to reimplement it.

Sponsored by: Serenity CyberSecurity, LLC
Reviewed by: emaste

LinuxKPI: Import vanilla linux/overflow.h

It is dual-licensed (GPLv2 & MIT) and self-contained header file.
No need to reimplement it.

Sponsored by: Serenity CyberSecurity, LLC
Reviewed by: emaste
MFC after: 1 week

show more ...


# 70617458 01-Feb-2024 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: sort dev_<loglevel>() functions

Sort the dev_<loglevel> functions by loglevel order, add the dev_alert()
version and an indentation change.

No functional changes.

MFC after: 3 days
Revie

LinuxKPI: sort dev_<loglevel>() functions

Sort the dev_<loglevel> functions by loglevel order, add the dev_alert()
version and an indentation change.

No functional changes.

MFC after: 3 days
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D43719

show more ...


# a0125996 24-Dec-2023 Vladimir Kondratyev <wulf@FreeBSD.org>

LinuxKPI: Implement dev_dbg_once() macro

Sponsored by: Serenity Cyber Security, LLC
Reviewed by: manu, bz
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D42795


# 59cbead6 09-Dec-2023 Jean-Sébastien Pédron <dumbbell@FreeBSD.org>

linuxkpi: Add support for `suspend_noirq` callback in `struct dev_pm_ops`

[Why]
This callback is being used by the amdgpu DRM driver in Linux 5.18.

[How]
The callback is called after `suspend_late(

linuxkpi: Add support for `suspend_noirq` callback in `struct dev_pm_ops`

[Why]
This callback is being used by the amdgpu DRM driver in Linux 5.18.

[How]
The callback is called after `suspend_late()`.

Reviewed by: emaste, manu
Approved by: emaste, manu
Differential Revision: https://reviews.freebsd.org/D43029

show more ...


# 95ee2897 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: two-line .h pattern

Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/


# aaf6129c 17-Mar-2023 Emmanuel Vadot <manu@FreeBSD.org>

linuxkpi: Add devm_add_action and devm_add_action_or_reset

Those adds a new devres and will exectute some function on release.

Reviewed by: bz
Differential Revision: https://reviews.freebsd.org/D39

linuxkpi: Add devm_add_action and devm_add_action_or_reset

Those adds a new devres and will exectute some function on release.

Reviewed by: bz
Differential Revision: https://reviews.freebsd.org/D39142
Sponsored by: Beckhoff Automation GmbH & Co. KG

show more ...


# e91f5814 20-Feb-2023 Jean-Sébastien Pédron <dumbbell@FreeBSD.org>

linuxkpi: Define `device_iommu_mapped()`

For now, it always return false.

Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D39050


# 0777b000 20-Feb-2023 Jean-Sébastien Pédron <dumbbell@FreeBSD.org>

linuxkpi: Define `dev_WARN()` and `dev_WARN_ONCE()`

Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D39049


# 7d03acf0 13-Feb-2023 Jean-Sébastien Pédron <dumbbell@FreeBSD.org>

linuxkpi: Declare `struct fwnode_handle` in <linux/fwnode.h>

Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D38566


# ffdf10fb 28-Jan-2023 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: device: add device_set_wakeup_enable()

Add a dummy device_set_wakeup_enable() which is used for WoWLAN which we
do not (yet) support and device_wakeup_enable() which is a wrapper to the
fo

LinuxKPI: device: add device_set_wakeup_enable()

Add a dummy device_set_wakeup_enable() which is used for WoWLAN which we
do not (yet) support and device_wakeup_enable() which is a wrapper to the
former with the enable argument being true.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D38238

show more ...


# bbff0400 19-Jan-2023 Jean-Sébastien Pédron <dumbbell@FreeBSD.org>

linuxkpi: Define `dev_dbg_ratelimited()`

Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D38145


# 0d4d9ee6 11-Jan-2023 Jean-Sébastien Pédron <dumbbell@FreeBSD.org>

linuxkpi: Add `complete` field to `struct dev_pm_ops`

This change breaks the KBI.

Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D38085


# c4163160 11-Nov-2022 Jean-Sébastien Pédron <dumbbell@FreeBSD.org>

linuxkpi: Add `dev_warn_once()` in <linux/device.h>

Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D36968


# 4cb3cb2d 06-Oct-2022 Jake Freeland <jfree@FreeBSD.org>

LinuxKPI: Add pci_power querying for drm-kmod

Adds a few struct members and a function to get i915_runtime_pm_status()
to compile in drm-kmod.

Differential Revision: https://reviews.freebsd.org/D36

LinuxKPI: Add pci_power querying for drm-kmod

Adds a few struct members and a function to get i915_runtime_pm_status()
to compile in drm-kmod.

Differential Revision: https://reviews.freebsd.org/D36749
Sponsored by: Google, Inc. (GSoC 2022)

show more ...


# e999fbf0 21-Sep-2022 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: device.h add devm_kmemdup()

Add devm_kmemdup() as needed by a networking driver.

Sponsored by: The FreeBSD Foundation
MFC after: 7 days
eviewed by: hselasky, emaste
Differential Revision

LinuxKPI: device.h add devm_kmemdup()

Add devm_kmemdup() as needed by a networking driver.

Sponsored by: The FreeBSD Foundation
MFC after: 7 days
eviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D36652

show more ...


# 8ea48fc5 21-Sep-2022 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: device.h remove duplicate #include

linux/types.h is included twice; reduce to the first.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days


123456