define LFDS711_FREELIST_QUERY_GET_ELIMINATION_ARRAY_SIZE_IN_FREELIST_ELEMENTS

From liblfds.org
Jump to: navigation, search

Source Files

└───liblfds711
    └───inc
        └───liblfds711
                lfds711_freelist.h

Define

#define LFDS711_FREELIST_QUERY_GET_ELIMINATION_ARRAY_SIZE_IN_FREELIST_ELEMENTS

Notes

This is a convenience define. The value in the define is the cache line length in bytes divided by size in bytes of a struct lfds711_freelist_element *.

When initializing a freelist, store can be provided for what is known as an elimination array. Please see Freelist for full details. The store is arranged in the form of an array, where element is an array (of struct lfds711_freelist_element * volatile, where the number of pointers in the array of these pointers is the value in the define LFDS711_FREELIST_QUERY_GET_ELIMINATION_ARRAY_SIZE_IN_FREELIST_ELEMENTS. The design of the elimination layer requires that the store used is cache line aligned, and that each element in the array is cache line aligned - which therefore means each line must be cache line length long.

Example

None yet.

See Also