Go to the documentation of this file.
29 #include <linux/list.h>
30 #include <linux/slab.h>
31 #include <linux/bitops.h>
32 #include <linux/string.h>
171 #define LC_FREE (~0U)
195 #define LC_MAX_ACTIVE (1<<24)
237 #define LC_PARANOIA (1<<__LC_PARANOIA)
238 #define LC_DIRTY (1<<__LC_DIRTY)
239 #define LC_STARVING (1<<__LC_STARVING)
242 unsigned e_count,
size_t e_size,
size_t e_off);
267 static inline int lc_try_lock(
struct lru_cache *lc)
276 static inline void lc_unlock(
struct lru_cache *lc)
282 static inline int lc_is_used(
struct lru_cache *lc,
unsigned int enr)
288 #define lc_entry(ptr, type, member) \
289 container_of(ptr, type, member)