Page MenuHomeFreeBSD

linuxkpi: Define `DEFINE_XARRAY*()` macros
AcceptedPublic

Authored by dumbbell on Thu, Apr 16, 9:08 PM.
Tags
None
Referenced Files
F153493681: D56446.id175713.diff
Tue, Apr 21, 11:23 AM
F153447997: D56446.id.diff
Tue, Apr 21, 5:48 AM
F153413065: D56446.diff
Tue, Apr 21, 12:50 AM
Unknown Object (File)
Sat, Apr 18, 7:50 AM
Unknown Object (File)
Sat, Apr 18, 7:50 AM
Unknown Object (File)
Sat, Apr 18, 6:12 AM
Unknown Object (File)
Sat, Apr 18, 6:12 AM
Subscribers

Details

Reviewers
bz
Group Reviewers
linuxkpi
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

Lint
Lint Skipped
Unit
Tests Skipped