ChibiOS/RT 7.0.5
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.
oc_object_thash_prev
 Previous in the collisions list.
oc_object_tlru_next
 Next in the LRU list.
oc_object_tlru_prev
 Previous in the LRU list.
uint32_t obj_group
 Object group.
uint32_t obj_key
 Object key.
semaphore_t obj_sem
 Semaphore for object access.
oc_flags_t obj_flags
 Object flags.
void * dptr
 User pointer.

Detailed Description

Structure representing a cached object.

Definition at line 153 of file chobjcaches.h.

Field Documentation

◆ hash_next

oc_object_t* ch_oc_object::hash_next

Next in the collisions list.

Definition at line 157 of file chobjcaches.h.

Referenced by hash_get_s().

◆ hash_prev

oc_object_t* ch_oc_object::hash_prev

Previous in the collisions list.

Definition at line 161 of file chobjcaches.h.

◆ lru_next

oc_object_t* ch_oc_object::lru_next

Next in the LRU list.

Definition at line 165 of file chobjcaches.h.

◆ lru_prev

oc_object_t* ch_oc_object::lru_prev

Previous in the LRU list.

Definition at line 169 of file chobjcaches.h.

◆ obj_group

uint32_t ch_oc_object::obj_group

Object group.

Definition at line 173 of file chobjcaches.h.

Referenced by chCacheGetObject(), chCacheObjectInit(), chCacheReleaseObjectI(), and hash_get_s().

◆ obj_key

uint32_t ch_oc_object::obj_key

Object key.

Definition at line 177 of file chobjcaches.h.

Referenced by chCacheGetObject(), chCacheObjectInit(), chCacheReleaseObjectI(), and hash_get_s().

◆ obj_sem

semaphore_t ch_oc_object::obj_sem

Semaphore for object access.

Definition at line 181 of file chobjcaches.h.

Referenced by chCacheGetObject(), chCacheObjectInit(), chCacheReleaseObjectI(), and lru_get_last_s().

◆ 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 191 of file chobjcaches.h.

Referenced by chCacheObjectInit().