pidentd
3.0.19
About: implementation of the RFC1413 identification server (more or less complete rewrite compared to version 2)
![]() ![]() |
Go to the source code of this file.
Data Structures | |
struct | buffer_t |
Functions | |
int | buffer_init (buffer_t *bp, int bsize) |
void | buffer_destroy (buffer_t *bp) |
void | buffer_put (buffer_t *bp, void *item) |
void * | buffer_get (buffer_t *bp) |
void buffer_destroy | ( | buffer_t * | bp | ) |
Definition at line 83 of file buffer.c.
References buffer_t::buf, buffer_t::less, buffer_t::more, buffer_t::mtx, pthread_cond_destroy(), pthread_mutex_destroy(), and s_free().
void* buffer_get | ( | buffer_t * | bp | ) |
Definition at line 62 of file buffer.c.
References buffer_t::bsize, buffer_t::buf, buffer_t::less, buffer_t::more, buffer_t::mtx, buffer_t::nextout, buffer_t::occupied, pthread_cond_signal(), pthread_cond_wait(), pthread_mutex_lock(), and pthread_mutex_unlock().
Referenced by kernel_alloc(), and kernel_thread().
int buffer_init | ( | buffer_t * | bp, |
int | bsize | ||
) |
Definition at line 24 of file buffer.c.
References buffer_t::bsize, buffer_t::buf, buffer_t::less, buffer_t::more, buffer_t::mtx, buffer_t::nextin, buffer_t::nextout, buffer_t::occupied, pthread_cond_init(), pthread_mutex_init(), and s_malloc().
Referenced by kernel_init().
void buffer_put | ( | buffer_t * | bp, |
void * | item | ||
) |
Definition at line 43 of file buffer.c.
References buffer_t::bsize, buffer_t::buf, buffer_t::less, buffer_t::more, buffer_t::mtx, buffer_t::nextin, buffer_t::occupied, pthread_cond_signal(), pthread_cond_wait(), pthread_mutex_lock(), and pthread_mutex_unlock().
Referenced by kernel_free(), kernel_init(), and kernel_query().