mirror of
https://github.com/opnsense/src.git
synced 2026-05-19 08:25:22 -04:00
When the node to insert in the rb_tree is known to precede or follow a
particular node, new methods RB_INSERT_PREV and RB_INSERT_NEXT,
defined here, allow the search for where to insert the new node begin
with that particular node, rather than at the root, to save a bit of
time.
Using those methods, instead of RB_INSERT, in managing a tree in
iommu_gas.c, saves a little time.
Reviewed by: kib
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D35516
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| busdma_iommu.c | ||
| busdma_iommu.h | ||
| iommu.h | ||
| iommu_gas.c | ||
| iommu_gas.h | ||
| iommu_msi.h | ||
| iommu_types.h | ||