Define RCSW_DS_LLIST_DB_DISOWN

Define Documentation

RCSW_DS_LLIST_DB_DISOWN

Indicate that a llist should NOT to allocate/deallocate a datablock for a llist_node when the llist_node is allocated/deallocated. This is useful when you are pointing to valid datablocks that are managed by another data structure. An example use case would be an LRU list pointing to datablocks within a cache.

This flag has several side effects:

  1. llist_filter2() will not work as intended: the llist_nodes will be deallocated, but the datablocks for those llist_nodes will still be allocated, and (possibly) irretrievable.

  2. llist_filter() works the same as llist_copy2() (a conditional copy)