Page MenuHomeFreeBSD

linuxkpi: Define `DEFINE_XARRAY*()` macros
ClosedPublic

Authored by dumbbell on Apr 16 2026, 9:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jul 27, 4:28 AM
Unknown Object (File)
Sun, Jul 26, 7:49 PM
Unknown Object (File)
Sat, Jul 25, 1:43 AM
Unknown Object (File)
Tue, Jul 21, 12:00 AM
Unknown Object (File)
Mon, Jul 20, 10:43 AM
Unknown Object (File)
Wed, Jul 15, 5:43 AM
Unknown Object (File)
Wed, Jul 15, 5:43 AM
Unknown Object (File)
Tue, Jul 14, 5:07 PM
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