ChibiOS  21.6.0
ch_objects_cache Struct Reference

Structure representing a cache object. More...

#include <chobjcaches.h>

Collaboration diagram for ch_objects_cache:
Collaboration graph

Data Fields

ucnt_t hashn
 Number of elements in the hash table. More...
 
oc_hash_header_thashp
 Pointer to the hash table. More...
 
ucnt_t objn
 Number of elements in the objects table. More...
 
size_t objsz
 Size of elements in the objects table. More...
 
void * objvp
 Pointer to the objects table. More...
 
oc_lru_header_t lru
 LRU list header. More...
 
semaphore_t cache_sem
 Semaphore for cache access. More...
 
semaphore_t lru_sem
 Semaphore for LRU access. More...
 
oc_readf_t readf
 Reader functions for cached objects. More...
 
oc_writef_t writef
 Writer functions for cached objects. More...
 

Detailed Description

Structure representing a cache object.

Definition at line 193 of file chobjcaches.h.

Field Documentation

◆ hashn

ucnt_t ch_objects_cache::hashn

Number of elements in the hash table.

Definition at line 197 of file chobjcaches.h.

Referenced by chCacheObjectInit().

◆ hashp

oc_hash_header_t* ch_objects_cache::hashp

Pointer to the hash table.

Definition at line 201 of file chobjcaches.h.

Referenced by chCacheObjectInit(), and hash_get_s().

◆ objn

ucnt_t ch_objects_cache::objn

Number of elements in the objects table.

Definition at line 205 of file chobjcaches.h.

Referenced by chCacheObjectInit().

◆ objsz

size_t ch_objects_cache::objsz

Size of elements in the objects table.

Definition at line 209 of file chobjcaches.h.

◆ objvp

void* ch_objects_cache::objvp

Pointer to the objects table.

Definition at line 213 of file chobjcaches.h.

Referenced by chCacheObjectInit().

◆ lru

oc_lru_header_t ch_objects_cache::lru

LRU list header.

Definition at line 217 of file chobjcaches.h.

Referenced by chCacheObjectInit(), and lru_get_last_s().

◆ cache_sem

semaphore_t ch_objects_cache::cache_sem

Semaphore for cache access.

Definition at line 221 of file chobjcaches.h.

Referenced by chCacheObjectInit().

◆ lru_sem

semaphore_t ch_objects_cache::lru_sem

Semaphore for LRU access.

Definition at line 225 of file chobjcaches.h.

Referenced by chCacheObjectInit(), and lru_get_last_s().

◆ readf

oc_readf_t ch_objects_cache::readf

Reader functions for cached objects.

Definition at line 229 of file chobjcaches.h.

Referenced by chCacheObjectInit().

◆ writef

oc_writef_t ch_objects_cache::writef

Writer functions for cached objects.

Definition at line 233 of file chobjcaches.h.

Referenced by chCacheObjectInit().