define LFDS710_FREELIST_QUERY_GET_ELIMINATION_ARRAY_SIZE_IN_FREELIST_ELEMENTS

From liblfds.org
Jump to navigation Jump to search

Source Files

└───liblfds710
    └───inc
        └───liblfds710
                lfds710_freelist.h

Define

#define LFDS710_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 lfds710_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 lfds710_freelist_element * volatile, where the number of pointers in the array of these pointers is the value in the define LFDS710_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