libosmocore UNKNOWN
Osmocom core library
Loading...
Searching...
No Matches
osmo_io_fd Struct Reference

#include <osmo_io_internal.h>

Data Structures

struct  [struct].msgb_alloc
struct  [struct].tx_queue
union  [union].u

Data Fields

struct llist_head list
 linked list for internal management
int fd
 actual operating-system level file decriptor
enum osmo_io_fd_mode mode
 type of read/write mode to use
uint32_t flags
 flags to guard closing/freeing of iofd
char * name
 human-readable name to associte with fd
struct osmo_io_ops io_ops
 send/recv (msg) callback functions
struct msgb * pending
 Pending msgb to keep partial data during segmentation.
void * data
 data pointer passed through to call-back function
unsigned int priv_nr
 private number, extending data
size_t cmsg_size
 size of iofd_msghdr.cmsg[] when allocated in recvmsg path
uint8_t io_read_buffers
 maximum number of message-buffers per read operation
uint8_t io_write_buffers
 maximum number of message-buffers per write operation
struct  msgb_alloc
struct  tx_queue
union  u

Field Documentation

◆ cmsg_size

size_t osmo_io_fd::cmsg_size

size of iofd_msghdr.cmsg[] when allocated in recvmsg path

Referenced by iofd_poll_ofd_cb_recvmsg_sendmsg(), and osmo_iofd_set_cmsg_size().

◆ data

void* osmo_io_fd::data

data pointer passed through to call-back function

Referenced by osmo_iofd_get_data(), osmo_iofd_set_data(), and osmo_iofd_setup().

◆ fd

◆ flags

uint32_t osmo_io_fd::flags

flags to guard closing/freeing of iofd

◆ io_ops

◆ io_read_buffers

uint8_t osmo_io_fd::io_read_buffers

maximum number of message-buffers per read operation

Referenced by iofd_msghdr_alloc(), osmo_iofd_set_io_buffers(), and osmo_iofd_setup().

◆ io_write_buffers

uint8_t osmo_io_fd::io_write_buffers

maximum number of message-buffers per write operation

Referenced by iofd_txqueue_dequeue(), osmo_iofd_set_io_buffers(), osmo_iofd_setup(), and osmo_iofd_write_msgb().

◆ list

struct llist_head osmo_io_fd::list

linked list for internal management

◆ mode

◆ msgb_alloc

◆ name

char* osmo_io_fd::name

human-readable name to associte with fd

Referenced by osmo_iofd_get_name(), osmo_iofd_set_name(), osmo_iofd_set_name_f(), and osmo_iofd_setup().

◆ pending

struct msgb* osmo_io_fd::pending

Pending msgb to keep partial data during segmentation.

Referenced by iofd_handle_segmented_read(), iofd_prepare_handle_segmentation(), osmo_iofd_close(), and osmo_iofd_setup().

◆ priv_nr

unsigned int osmo_io_fd::priv_nr

private number, extending data

Referenced by osmo_iofd_get_priv_nr(), and osmo_iofd_set_priv_nr().

◆ tx_queue

◆ u


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