libosmocore 1.9.0.192-1c24
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

◆ except_cb

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

call-back in case qeueue has exceptions.

Return -EBADF if fd is freed inside cb.

Referenced by osmo_wqueue_bfd_cb(), and osmo_wqueue_init().

◆ max_length

unsigned int osmo_wqueue::max_length

◆ msg_queue

struct llist_head osmo_wqueue::msg_queue

◆ read_cb

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

call-back in case qeueue is readable.

Return -EBADF if fd is freed inside cb.

Referenced by osmo_tundev_alloc(), 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.

Return -EBADF if fd is freed inside cb.

Referenced by log_target_create_file(), log_target_file_switch_to_wqueue(), osmo_tundev_alloc(), osmo_wqueue_bfd_cb(), and osmo_wqueue_init().


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