ble_gatt_client
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
design_notes.h
Go to the documentation of this file.
1 
13 /*
14  * design_notes.h
15  *
16  * Created on: 30 juil. 2015
17  * Author: gilbert
18  */
19 
20 #ifndef DESIGN_NOTES_H_
21 #define DESIGN_NOTES_H_
22 #include <sys/epoll.h>
32 int epoll_ctl_doc (int epfd,
33  int op,
34  int fd,
35  struct epoll_event *event);
36 
42  int events;
43  union {
44  void *ptr;
45  int fd;
46  int u32;
47  long u64;
48  } data;
49 };
50 
56  EPOLL_CTL_ADD_DOC=EPOLL_CTL_ADD,
58  EPOLL_CTL_DEL_DOC=EPOLL_CTL_DEL,
60  EPOLL_CTL_MOD_DOC=EPOLL_CTL_MOD
61 };
62 
95  EPOLLERR_DOC=EPOLLERR,
97  EPOLLET_DOC=EPOLLET,
99  EPOLLHUP_DOC=EPOLLHUP,
101  EPOLLIN_DOC=EPOLLIN,
103  EPOLLONESHOT_DOC=EPOLLONESHOT,
105  EPOLLOUT_DOC=EPOLLOUT,
107  EPOLLPRI_DOC=EPOLLPRI
108 };
109 
110 
111 
112 #endif /* DESIGN_NOTES_H_ */
EPOLLIN: The file is available to be read from without blocking.
Definition: design_notes.h:101
epool event structure 4th parameter of epoll_ctl(...)
Definition: design_notes.h:40
EPOLLET: Enables edge-triggered behavior for the monitor of the file (see the upcoming section "Edge-...
Definition: design_notes.h:97
EPOLLOUT: The file is available to be written to without blocking.
Definition: design_notes.h:105
EPOLL_CTL_DOC
EPOLL_CTL_XXX possible values.
Definition: design_notes.h:54
int epoll_ctl_doc(int epfd, int op, int fd, struct epoll_event *event)
union epoll_event_doc::@4 data
int events
and EPOLL_EVENT value (might be ored)
Definition: design_notes.h:42
EPOLL_EVENTS_DOC
EPOLL_EVENTS possible values.
Definition: design_notes.h:93
EPOLLPRI: There is urgent out-of-band data available to read.
Definition: design_notes.h:107
EPOLLHUP: A hangup occurred on the file. This event is always monitored, even if it's not specified...
Definition: design_notes.h:99
EPOLL_CTL_MOD: Modify an existing monitor of fd with the updated events specified by event...
Definition: design_notes.h:60
EPOLLERR: An error condition occurred on the file. This event is always monitored, even if it's not specified.
Definition: design_notes.h:95
EPOLL_CTL_DEL: Remove a monitor on the file associated with the file descriptor fd from the epoll ins...
Definition: design_notes.h:58
EPOLLONESHOT: After an event is generated and read, the file is automatically no longer monitored...
Definition: design_notes.h:103
EPOLL_CTL_ADD: Add a monitor on the file associated with the file descriptor fd to the epoll instance...
Definition: design_notes.h:56