summaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/xarray.h
AgeCommit message (Collapse)Author
2025-01-31linuxkpi: Use same field names in `struct xarray` as LinuxJean-Sébastien Pédron
[Why] The i915 DRM driver started to access the `xa_lock` field in Linux 6.7. Reviewed by: manu Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D48754
2025-01-31linuxkpi: Add `xa_alloc_cyclic_irq()`Jean-Sébastien Pédron
[Why] This function is used by the i915 DRM driver starting with Linux 6.7. Reviewed by: manu Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D48753
2023-12-24LinuxKPI: Add xa_(un)lock_irq to linux/xarray.hVladimir Kondratyev
On FreeBSD they are equal to non-irq version. Sponsored by: Serenity Cyber Security, LLC Reviewed by: manu, bz MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42803
2023-08-16sys: Remove $FreeBSD$: two-line .h patternWarner Losh
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
2023-02-15linuxkpi: Move `IS_ENABLED()` and friends to <linux/kconfig.h>Jean-Sébastien Pédron
The header is included in <linux/xarray.h> like it is on Linux. Some DRM code depends on this header "pollution". Reviewed by: bz Approved by: bz Differential Revision: https://reviews.freebsd.org/D38567
2023-02-13linuxkpi: Define `xa_is_err()`, `xa_{store,erase}_irq()` and ↵Jean-Sébastien Pédron
`xa_{,un}lock_irq*()` `xa_is_err()` is synonymous to `IS_ERR()`. Other introduced functions call their equivalent without the `irq*` suffix. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38534
2022-01-10LinuxKPI: Constantly use _LINUXKPI_ prefix in include guardsVladimir Kondratyev
MFC after: 1 week Reviewed by: bz, emaste, hselasky, manu Differential Revision: https://reviews.freebsd.org/D33562
2022-01-10LinuxKPI: Add support for XA_FLAGS_ALLOC1 xarray flagVladimir Kondratyev
XA_FLAGS_ALLOC1 causes allocation of xarray entries starting at 1 Required by drm-kmod 5.7 MFC after: 1 week Reviewed by: hselasky, manu Differential Revision: https://reviews.freebsd.org/D33293
2021-09-29LinuxKPI: Add helper functions to store integers to linux/xarray.hVladimir Kondratyev
Required by drm-kmod. Reviewed by: hselasky MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D32091
2020-10-24Implement xa_init() in the LinuxKPI as a wrapper for xa_init_flags().Hans Petter Selasky
MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/head/; revision=366996
2020-08-27Implement extensible arrays API using the existing radix tree implementationHans Petter Selasky
in the LinuxKPI. Differential Revision: https://reviews.freebsd.org/D25101 Reviewed by: kib @ MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=364860