Page MenuHomeFreeBSD

linuxkpi: Define `DEFINE_XARRAY*()` macros
ClosedPublic

Authored by dumbbell on Apr 16 2026, 9:08 PM.
Tags
None
Referenced Files
F168020824: D56446.id176865.diff
Tue, Aug 25, 11:16 PM
F168006884: D56446.diff
Tue, Aug 25, 9:26 PM
F167984723: D56446.id175713.diff
Tue, Aug 25, 6:28 PM
F167926573: D56446.diff
Tue, Aug 25, 11:28 AM
F167859608: D56446.id.diff
Tue, Aug 25, 1:36 AM
Unknown Object (File)
Sun, Aug 23, 6:32 PM
Unknown Object (File)
Sun, Aug 23, 3:12 PM
Unknown Object (File)
Sun, Aug 23, 1:17 AM
Subscribers

Details

Summary

The DEFINE_XARRAY*() macros are used to declare a static xarray.

As the structure embeds a mutex(9), we also need to declare the static mutex after the struct xarray. Thus the slightly awkward definition of DEFINE_XARRAY_FLAGS().

The DRM generic code started to use DEFINE_XARRAY_ALLOC() in Linux 6.12.

This is part of the update of DRM drivers to Linux 6.12.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable