libosmocore  1.5.1
Osmocom core library
osmo_fd Struct Reference

Structure representing a file dsecriptor. More...

#include <select.h>

Data Fields

struct llist_head list
 linked list for internal management More...
 
int fd
 actual operating-system level file decriptor More...
 
unsigned int when
 bit-mask or of OSMO_FD_READ, OSMO_FD_WRITE and/or OSMO_FD_EXCEPT More...
 
int(* cb )(struct osmo_fd *fd, unsigned int what)
 call-back function to be called once file descriptor becomes available More...
 
void * data
 data pointer passed through to call-back function More...
 
unsigned int priv_nr
 private number, extending data More...
 

Detailed Description

Structure representing a file dsecriptor.

Field Documentation

◆ cb

int(* osmo_fd::cb) (struct osmo_fd *fd, unsigned int what)

call-back function to be called once file descriptor becomes available

Referenced by gsmtap_source_add_sink(), osmo_fd_disp_fds(), osmo_fd_setup(), osmo_timerfd_setup(), osmo_wqueue_init(), and poll_disp_fds().

◆ data

void* osmo_fd::data

data pointer passed through to call-back function

Referenced by osmo_fd_setup(), osmo_it_q_fd_cb(), osmo_mnl_fd_cb(), osmo_timerfd_setup(), and signalfd_callback().

◆ fd

◆ list

struct llist_head osmo_fd::list

linked list for internal management

Referenced by osmo_fd_register(), and osmo_fd_unregister().

◆ priv_nr

unsigned int osmo_fd::priv_nr

private number, extending data

Referenced by osmo_fd_setup().

◆ when


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