freebsd-dev/sys/dev/iommu
Doug Moore 368ee2f86a rb_tree: let insert search start from next node
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
2022-10-02 22:27:21 -05:00
..
busdma_iommu.c kmem_malloc/free: Use void * instead of vm_offset_t for kernel pointers. 2022-09-22 15:09:19 -07:00
busdma_iommu.h busdma_iommu: Fine-grained locking for the dmamap's map list 2022-06-25 00:59:23 -05:00
iommu_gas.c rb_tree: let insert search start from next node 2022-10-02 22:27:21 -05:00
iommu_gas.h iommu_gas: add iommu_gas_remove() 2022-08-15 17:54:57 +03:00
iommu_msi.h
iommu_types.h
iommu.h iommu_gas: add iommu_gas_remove() 2022-08-15 17:54:57 +03:00