]> sourceware.org Git - lvm2.git/commit
radix_tree: add radix_tree_lookup/insert_ptr
authorZdenek Kabelac <zkabelac@redhat.com>
Sat, 1 Jun 2024 17:30:33 +0000 (19:30 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 3 Jun 2024 13:30:05 +0000 (15:30 +0200)
commit1813d0d186d9308c2f0eff11ee65c2492fcf2874
tree97954d6f84ca81b1d0f57c13e01c139cd4350bac
parentb77edc337a63cb22c04fb90ccb4743619b422fa8
radix_tree: add radix_tree_lookup/insert_ptr

Add simple 'wrapper' inline functions to insert or return ptr lookup value.
(So the user doesn't need to deal with 'union radix_value' locally and
also it makes easier to translage some lvm2 functions to use radix_tree).

Note: If the stored 'value' would NULL, it cannot be recognized
from a case of 'not found'. So usable only when 'values' stored with
tree are not NULL.
base/data-struct/radix-tree.h
This page took 0.038416 seconds and 5 git commands to generate.