MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / hash_fd_map

Function hash_fd_map

io_wait.h:217–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215
216/*! \brief add a fd_map structure to the fd hash */
217static inline struct fd_map* hash_fd_map( io_wait_h* h,
218 int fd,
219 fd_type type,
220 void* data,
221 int flags,
222 unsigned int timeout,
223 int *already)
224{
225 if (h->fd_hash[fd].fd <= 0) {
226 *already = 0;
227 } else {
228 *already = 1;
229 }
230
231 h->fd_hash[fd].fd=fd;
232 h->fd_hash[fd].type=type;
233 h->fd_hash[fd].data=data;
234
235 h->fd_hash[fd].flags|=flags;
236
237 h->fd_hash[fd].timeout = timeout;
238
239 return &h->fd_hash[fd];
240}
241
242
243#ifdef HAVE_KQUEUE

Callers 1

io_wait.hFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected