libosmocore
0.9.3.20160317
Osmocom core library
Main Page
Modules
Data Structures
Files
File List
Globals
select.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <osmocom/core/linuxlist.h>
4
14
#define BSC_FD_READ 0x0001
15
16
#define BSC_FD_WRITE 0x0002
17
18
#define BSC_FD_EXCEPT 0x0004
19
21
struct
osmo_fd
{
23
struct
llist_head
list
;
25
int
fd
;
28
unsigned
int
when
;
31
int (*
cb
)(
struct
osmo_fd
*
fd
,
unsigned
int
what);
33
void
*
data
;
35
unsigned
int
priv_nr
;
36
};
37
38
int
osmo_fd_register(
struct
osmo_fd
*
fd
);
39
void
osmo_fd_unregister(
struct
osmo_fd
*
fd
);
40
int
osmo_select_main(
int
polling);
41
osmo_fd::data
void * data
Definition:
select.h:33
osmo_fd::cb
int(* cb)(struct osmo_fd *fd, unsigned int what)
Definition:
select.h:31
osmo_fd::list
struct llist_head list
Definition:
select.h:23
osmo_fd::priv_nr
unsigned int priv_nr
Definition:
select.h:35
llist_head
Definition:
linuxlist.h:42
osmo_fd
Structure representing a file dsecriptor.
Definition:
select.h:21
osmo_fd::when
unsigned int when
Definition:
select.h:28
osmo_fd::fd
int fd
Definition:
select.h:25
include
osmocom
core
select.h
Generated on Thu Mar 17 2016 19:53:04 for libosmocore by
1.8.8