Revision tags: release/13.5.0 |
|
#
09ba3ece |
| 22-Feb-2025 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Add `list_for_each_rcu()`
This is a variant of `list_for_each()` where the next item in the list is read using `rcu_dereference()`.
This is used by the i915 DRM driver starting with Linux
linuxkpi: Add `list_for_each_rcu()`
This is a variant of `list_for_each()` where the next item in the list is read using `rcu_dereference()`.
This is used by the i915 DRM driver starting with Linux 6.8.
Reviewed by: emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D49375
show more ...
|
Revision tags: release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0 |
|
#
c58ddc25 |
| 24-Dec-2023 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Rename linux_list_add to __list_add() in linux/list.h
to match Linux
Sponsored by: Serenity Cyber Security, LLC Reviewed by: manu, bz MFC after: 1 week Differential Revision: https://revi
LinuxKPI: Rename linux_list_add to __list_add() in linux/list.h
to match Linux
Sponsored by: Serenity Cyber Security, LLC Reviewed by: manu, bz MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42818
show more ...
|
#
b723bcd0 |
| 08-Dec-2023 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Add `list_for_each_prev_safe()` in <linux/list.h>
[Why] The amdgpu DRM driver started to use it in Linux 5.18.
Reviewed by: manu Approved by: manu Differential Revision: https://reviews.f
linuxkpi: Add `list_for_each_prev_safe()` in <linux/list.h>
[Why] The amdgpu DRM driver started to use it in Linux 5.18.
Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D43021
show more ...
|
Revision tags: release/14.0.0 |
|
#
95ee2897 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
#
1b18fb7f |
| 26-Jun-2023 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: list.h add list_count_nodes()
Implement list_count_nodes() using a simple loop. This is needed by an updated wireless driver.
Sponsored by: The FreeBSD Foundation MFC after: 10 days Revi
LinuxKPI: list.h add list_count_nodes()
Implement list_count_nodes() using a simple loop. This is needed by an updated wireless driver.
Sponsored by: The FreeBSD Foundation MFC after: 10 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D40757
show more ...
|
Revision tags: release/13.2.0 |
|
#
54606590 |
| 09-Feb-2023 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: Move definition of `struct list_head` to <linux/types.h>
This is the case on Linux.
Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38537
|
#
a83b3ec7 |
| 11-Jan-2023 |
Jean-Sébastien Pédron <dumbbell@FreeBSD.org> |
linuxkpi: list_sort()'s callback now takes list arguments
This change breaks the API of `list_sort()`. `LINUXKPI_VERSION >= 51300` is used to keep the header compatible with both versions of the pro
linuxkpi: list_sort()'s callback now takes list arguments
This change breaks the API of `list_sort()`. `LINUXKPI_VERSION >= 51300` is used to keep the header compatible with both versions of the prototype.
Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38082
show more ...
|
Revision tags: release/12.4.0, release/13.1.0 |
|
#
bf7deecf |
| 11-Feb-2022 |
Emmanuel Vadot <manu@FreeBSD.org> |
linuxkpi: Add list_rotate_to_front
This just calls list_move_tail.
Reviewed by: hselasky, bz Sponsored by: Beckhoff Automation GmbH & Co. KG MFC after: 2 weeks Differential Revision: https://review
linuxkpi: Add list_rotate_to_front
This just calls list_move_tail.
Reviewed by: hselasky, bz Sponsored by: Beckhoff Automation GmbH & Co. KG MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D34251
show more ...
|
#
307f78f3 |
| 19-Dec-2021 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards
MFC after: 1 week Reviewed by: bz, emaste, hselasky, manu Differential Revision: https://reviews.freebsd.org/D33562
|
Revision tags: release/12.3.0 |
|
#
c0862b2b |
| 05-Jul-2021 |
Vladimir Kondratyev <wulf@FreeBSD.org> |
LinuxKPI: Add compiler barriers to list_for_each_entry_lockless macro
so this list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as lo
LinuxKPI: Add compiler barriers to list_for_each_entry_lockless macro
so this list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as the traversal is guarded by rcu_read_lock().
Do it by reusing the "list_for_each_entry_rcu" macro which does the same. On Linux it implements some additional lockdep stuff which we skip.
Also move the macro to linux/rculist.h where it resides on Linux.
Reviewed by: hselasky Differential revision: https://reviews.freebsd.org/D30795
show more ...
|
#
b47f461c |
| 10-Jun-2021 |
Neel Chauhan <nc@FreeBSD.org> |
linuxkpi: Add list_for_each_entry_lockless() macro
This is needed by the drm-kmod 5.7 update.
Approved by: hselasky (src) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D307
linuxkpi: Add list_for_each_entry_lockless() macro
This is needed by the drm-kmod 5.7 update.
Approved by: hselasky (src) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D30708
show more ...
|
Revision tags: release/13.0.0 |
|
#
de8a7cc7 |
| 18-Mar-2021 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
linuxkpi: add ieee80211_node.h to headers to include before LIST_HEAD
ieee80211_node.h uses LIST_HEAD() which LinuxKPI redefines and this can lead to problems (see comment there). Make sure the net
linuxkpi: add ieee80211_node.h to headers to include before LIST_HEAD
ieee80211_node.h uses LIST_HEAD() which LinuxKPI redefines and this can lead to problems (see comment there). Make sure the net80211 header file is handled correctly by adding it to the list of files to include before re-defining the macro. Also add header files needed as dependencies.
Sponsored-by: The FreeBSD Foundation MFC-after: 2 weeks Reviewed-by: philip, hselasky Differential Revision: https://reviews.freebsd.org/D29336
show more ...
|
#
01fdacdb |
| 04-Dec-2020 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Allow the list header file in the LinuxKPI to be used in standalone code. Some style and spelling nits while at it.
MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking
|
Revision tags: release/12.2.0 |
|
#
1a180032 |
| 01-Sep-2020 |
Mateusz Guzik <mjg@FreeBSD.org> |
compat: clean up empty lines in .c and .h files
|
Revision tags: release/11.4.0 |
|
#
6c140a72 |
| 20-Feb-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r358131 through r358178.
|
#
8f0c7343 |
| 20-Feb-2020 |
Emmanuel Vadot <manu@FreeBSD.org> |
linuxkpi: Add list_is_first function
This function just test if the element is the first of the list.
Reviewed by: hselasky MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D237
linuxkpi: Add list_is_first function
This function just test if the element is the first of the list.
Reviewed by: hselasky MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D23766
show more ...
|
Revision tags: release/12.1.0, release/11.3.0 |
|
#
2aaf9152 |
| 18-Mar-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead@r345275
|
#
845a91ce |
| 13-Mar-2019 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Implement list_for_each_entry_from_reverse() and list_bulk_move_tail() in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by: Limelight Networks Spo
Implement list_for_each_entry_from_reverse() and list_bulk_move_tail() in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by: Limelight Networks Sponsored by: Mellanox Technologies
show more ...
|
Revision tags: release/12.0.0, release/11.2.0 |
|
#
40ddfc76 |
| 06-Jun-2018 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Make some list functions RCU safe in the LinuxKPI. While at it rename hlist_add_after() into hlist_add_behind().
Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by:
Make some list functions RCU safe in the LinuxKPI. While at it rename hlist_add_after() into hlist_add_behind().
Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
show more ...
|
#
83630517 |
| 23-Mar-2018 |
Ed Maste <emaste@FreeBSD.org> |
linuxkpi whitespace cleanup
Reviewed by: hselasky, markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D14807
|
#
e44fa94c |
| 19-Feb-2018 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Implement list_safe_reset_next() function macro in the LinuxKPI.
MFC after: 1 week Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies Sponsored by: Limelight Ne
Implement list_safe_reset_next() function macro in the LinuxKPI.
MFC after: 1 week Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
show more ...
|
#
15052dc8 |
| 18-Feb-2018 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Implement __list_del_entry() helper functions in the LinuxKPI.
MFC after: 1 week Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies Sponsored by: Limelight Netw
Implement __list_del_entry() helper functions in the LinuxKPI.
MFC after: 1 week Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
show more ...
|
#
f8190300 |
| 10-Nov-2017 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Merge ^/head r325505 through r325662.
|
#
076f7ce6 |
| 10-Nov-2017 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Remove some not needed comments in the LinuxKPI. Use the Linux source tree to lookup documentation for the functions implemented in the LinuxKPI instead.
MFC after: 1 week Sponsored by: Mellanox Tec
Remove some not needed comments in the LinuxKPI. Use the Linux source tree to lookup documentation for the functions implemented in the LinuxKPI instead.
MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
Revision tags: release/10.4.0 |
|
#
1be4c195 |
| 25-Aug-2017 |
Enji Cooper <ngie@FreeBSD.org> |
MFhead@r322870
|