libosmocore  0.10.2
Osmocom core library
osmo_wqueue Struct Reference

write queue instance More...

#include <write_queue.h>

Data Fields

struct osmo_fd bfd
 osmocom file descriptor More...
 
unsigned int max_length
 maximum length of write queue More...
 
unsigned int current_length
 current length of write queue More...
 
struct llist_head msg_queue
 actual linked list implementing the queue More...
 
int(* read_cb )(struct osmo_fd *fd)
 call-back in case qeueue is readable More...
 
int(* write_cb )(struct osmo_fd *fd, struct msgb *msg)
 call-back in case qeueue is writable More...
 
int(* except_cb )(struct osmo_fd *fd)
 call-back in case qeueue has exceptions More...
 

Detailed Description

write queue instance

Field Documentation

◆ bfd

◆ current_length

unsigned int osmo_wqueue::current_length

current length of write queue

Referenced by osmo_wqueue_bfd_cb(), osmo_wqueue_clear(), osmo_wqueue_enqueue(), and osmo_wqueue_init().

◆ except_cb

int(* osmo_wqueue::except_cb) (struct osmo_fd *fd)

call-back in case qeueue has exceptions

Referenced by osmo_wqueue_bfd_cb(), and osmo_wqueue_init().

◆ max_length

unsigned int osmo_wqueue::max_length

maximum length of write queue

Referenced by osmo_wqueue_enqueue(), and osmo_wqueue_init().

◆ msg_queue

struct llist_head osmo_wqueue::msg_queue

actual linked list implementing the queue

Referenced by osmo_wqueue_bfd_cb(), osmo_wqueue_clear(), osmo_wqueue_enqueue(), and osmo_wqueue_init().

◆ read_cb

int(* osmo_wqueue::read_cb) (struct osmo_fd *fd)

call-back in case qeueue is readable

Referenced by osmo_wqueue_bfd_cb(), and osmo_wqueue_init().

◆ write_cb

int(* osmo_wqueue::write_cb) (struct osmo_fd *fd, struct msgb *msg)

call-back in case qeueue is writable

Referenced by gsmtap_source_init(), osmo_wqueue_bfd_cb(), and osmo_wqueue_init().


The documentation for this struct was generated from the following file: