History log of /src/sys/compat/linuxkpi/common/include/linux/kfifo.h (Results 1 – 9 of 9)
Revision Date Author Comments
# 55bd09ae 07-Sep-2025 Jean-Sébastien Pédron <dumbbell@FreeBSD.org>

linuxkpi: Add support for statically-allocated kfifo

The main difference with the dynamically allocated version is that the
structure is initialized with `DECLARE_KFIFO()` which takes the number
of

linuxkpi: Add support for statically-allocated kfifo

The main difference with the dynamically allocated version is that the
structure is initialized with `DECLARE_KFIFO()` which takes the number
of items as an additional argument compared to `DECLARE_KFIFO_PTR()`.

The declared structure is then initialized with `INIT_KFIFO()` which
sets all fields to 0, except `total` which is computed from the size of
the array passed to `DECLARE_KFIFO()`.

The amdgpu DRM driver started to used this in Linux 6.10.

Reviewed by: bz
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54497

show more ...


# 4a7e8c7b 16-Jul-2022 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: extend kfifo to be usable

Implement some basic kfifo pieces as needed by drivers.

MFC after: 2 weeks
Reviewed by: wulf, hselasky
Differential Revision: https://reviews.freebsd.org/D35829


# 088b746c 23-Jun-2022 Emmanuel Vadot <manu@FreeBSD.org>

linuxkpi: Add kfifo.h

Provide macros needed for drm-kmod.

Reviewed by: bz
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D

linuxkpi: Add kfifo.h

Provide macros needed for drm-kmod.

Reviewed by: bz
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D35563

show more ...


# 55bd09ae 07-Sep-2025 Jean-Sébastien Pédron <dumbbell@FreeBSD.org>

linuxkpi: Add support for statically-allocated kfifo

The main difference with the dynamically allocated version is that the
structure is initialized with `DECLARE_KFIFO()` which takes the number
of

linuxkpi: Add support for statically-allocated kfifo

The main difference with the dynamically allocated version is that the
structure is initialized with `DECLARE_KFIFO()` which takes the number
of items as an additional argument compared to `DECLARE_KFIFO_PTR()`.

The declared structure is then initialized with `INIT_KFIFO()` which
sets all fields to 0, except `total` which is computed from the size of
the array passed to `DECLARE_KFIFO()`.

The amdgpu DRM driver started to used this in Linux 6.10.

Reviewed by: bz
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54497

show more ...


# 4a7e8c7b 16-Jul-2022 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: extend kfifo to be usable

Implement some basic kfifo pieces as needed by drivers.

MFC after: 2 weeks
Reviewed by: wulf, hselasky
Differential Revision: https://reviews.freebsd.org/D35829


# 088b746c 23-Jun-2022 Emmanuel Vadot <manu@FreeBSD.org>

linuxkpi: Add kfifo.h

Provide macros needed for drm-kmod.

Reviewed by: bz
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D

linuxkpi: Add kfifo.h

Provide macros needed for drm-kmod.

Reviewed by: bz
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D35563

show more ...


# 55bd09ae 07-Sep-2025 Jean-Sébastien Pédron <dumbbell@FreeBSD.org>

linuxkpi: Add support for statically-allocated kfifo

The main difference with the dynamically allocated version is that the
structure is initialized with `DECLARE_KFIFO()` which takes the number
of

linuxkpi: Add support for statically-allocated kfifo

The main difference with the dynamically allocated version is that the
structure is initialized with `DECLARE_KFIFO()` which takes the number
of items as an additional argument compared to `DECLARE_KFIFO_PTR()`.

The declared structure is then initialized with `INIT_KFIFO()` which
sets all fields to 0, except `total` which is computed from the size of
the array passed to `DECLARE_KFIFO()`.

The amdgpu DRM driver started to used this in Linux 6.10.

Reviewed by: bz
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54497

show more ...


# 4a7e8c7b 16-Jul-2022 Bjoern A. Zeeb <bz@FreeBSD.org>

LinuxKPI: extend kfifo to be usable

Implement some basic kfifo pieces as needed by drivers.

MFC after: 2 weeks
Reviewed by: wulf, hselasky
Differential Revision: https://reviews.freebsd.org/D35829


# 088b746c 23-Jun-2022 Emmanuel Vadot <manu@FreeBSD.org>

linuxkpi: Add kfifo.h

Provide macros needed for drm-kmod.

Reviewed by: bz
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D

linuxkpi: Add kfifo.h

Provide macros needed for drm-kmod.

Reviewed by: bz
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D35563

show more ...