-
- Downloads
lib/igt_list: Update, clean-up and document igt_list
Our list was something between Wayland and Linux Kernel list implementations, right in the uncanny valley. On top of that it falsely claimed that it's a straight copy from the Wayland project. Let's make our impl more akin to the kernel one to ease the cognitive dissonance for the developers working on all those projects. This patch: * mimics the current kernel list interface * separates IGT helpers in the source files * adds brief explanation and code example for igt-doc * introduces igt_list.c as static inlines are not visible in the docs v2: mimic the kernel instead of wayland (Chris) - _head suffix for the sentinel/link struct - _entry_ in iterator names that go over the elements v3: I forgot to merge this in time and there was another call site that had to be converted in gem_spin_batch.c Cc: Petri Latvala <petri.latvala@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by:Arkadiusz Hiler <arkadiusz.hiler@intel.com> Acked-by:
Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by:
Petri Latvala <petri.latvala@intel.com>
parent
5997df31
No related branches found
No related tags found
Pipeline #78334 passed
Stage: build-containers
Stage: build
Stage: test
Stage: containers
Stage: deploy
Showing
- benchmarks/gem_wsim.c 3 additions, 3 deletionsbenchmarks/gem_wsim.c
- docs/reference/igt-gpu-tools/igt-gpu-tools-docs.xml 1 addition, 0 deletionsdocs/reference/igt-gpu-tools/igt-gpu-tools-docs.xml
- lib/Makefile.sources 2 additions, 0 deletionslib/Makefile.sources
- lib/igt_chamelium.c 4 additions, 4 deletionslib/igt_chamelium.c
- lib/igt_core.c 4 additions, 4 deletionslib/igt_core.c
- lib/igt_dummyload.c 5 additions, 5 deletionslib/igt_dummyload.c
- lib/igt_dummyload.h 1 addition, 1 deletionlib/igt_dummyload.h
- lib/igt_kmod.c 5 additions, 5 deletionslib/igt_kmod.c
- lib/igt_kmod.h 2 additions, 2 deletionslib/igt_kmod.h
- lib/igt_list.c 77 additions, 0 deletionslib/igt_list.c
- lib/igt_list.h 88 additions, 88 deletionslib/igt_list.h
- lib/meson.build 1 addition, 0 deletionslib/meson.build
- tests/i915/gem_spin_batch.c 2 additions, 2 deletionstests/i915/gem_spin_batch.c
- tests/vc4_purgeable_bo.c 14 additions, 14 deletionstests/vc4_purgeable_bo.c
Loading
Please register or sign in to comment