libosmocore 0.9.6-23.20170220git32ee5af8.fc42
Osmocom core library
Loading...
Searching...
No Matches
select.c File Reference

select loop abstraction More...

#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <sys/select.h>
#include <osmocom/core/select.h>
#include <osmocom/core/linuxlist.h>
#include <osmocom/core/timer.h>
#include "../config.h"

Functions

static LLIST_HEAD (osmo_fds)
 
bool osmo_fd_is_registered (struct osmo_fd *fd)
 Check if a file descriptor is already registered.
 
int osmo_fd_register (struct osmo_fd *fd)
 Register a new file descriptor with select loop abstraction.
 
void osmo_fd_unregister (struct osmo_fd *fd)
 Unregister a file descriptor from select loop abstraction.
 
int osmo_fd_fill_fds (void *readset, void *writeset, void *exceptset)
 
int osmo_fd_disp_fds (void *readset, void *writeset, void *exceptset)
 
int osmo_select_main (int polling)
 select main loop integration
 
struct osmo_fdosmo_fd_get_by_fd (int fd)
 find an osmo_fd based on the integer fd
 

Variables

static int maxfd = 0
 
static int unregistered_count
 

Detailed Description

select loop abstraction