ChibiOS  21.6.0
ch_oc_object Struct Reference

Structure representing a cached object. More...

#include <chobjcaches.h>

Collaboration diagram for ch_oc_object:
Collaboration graph

Data Fields

oc_object_thash_next
 Next in the collisions list. More...
 
oc_object_thash_prev
 Previous in the collisions list. More...
 
oc_object_tlru_next
 Next in the LRU list. More...
 
oc_object_tlru_prev
 Previous in the LRU list. More...
 
uint32_t obj_group
 Object group. More...
 
uint32_t obj_key
 Object key. More...
 
semaphore_t obj_sem
 Semaphore for object access. More...
 
oc_flags_t obj_flags
 Object flags. More...
 
void * dptr
 User pointer. More...
 

Detailed Description

Structure representing a cached object.

Definition at line 149 of file chobjcaches.h.

Field Documentation

◆ hash_next

oc_object_t* ch_oc_object::hash_next

Next in the collisions list.

Definition at line 153 of file chobjcaches.h.

◆ hash_prev

oc_object_t* ch_oc_object::hash_prev

Previous in the collisions list.

Definition at line 157 of file chobjcaches.h.

◆ lru_next

oc_object_t* ch_oc_object::lru_next

Next in the LRU list.

Definition at line 161 of file chobjcaches.h.

◆ lru_prev

oc_object_t* ch_oc_object::lru_prev

Previous in the LRU list.

Definition at line 165 of file chobjcaches.h.

◆ obj_group

uint32_t ch_oc_object::obj_group

Object group.

Definition at line 169 of file chobjcaches.h.

◆ obj_key

uint32_t ch_oc_object::obj_key

Object key.

Definition at line 173 of file chobjcaches.h.

◆ obj_sem

semaphore_t ch_oc_object::obj_sem

Semaphore for object access.

Definition at line 177 of file chobjcaches.h.

Referenced by chCacheObjectInit().

◆ obj_flags

oc_flags_t ch_oc_object::obj_flags

◆ dptr

void* ch_oc_object::dptr

User pointer.

Note
This pointer can be used to refer to external buffers, chCacheObjectInit() initializes it to NULL.

Definition at line 187 of file chobjcaches.h.