MCPcopy Create free account
hub / github.com/F-Stack/f-stack / get_last_valid_idx

Function get_last_valid_idx

dpdk/lib/vhost/fd_man.c:18–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16#define FDPOLLERR (POLLERR | POLLHUP | POLLNVAL)
17
18static int
19get_last_valid_idx(struct fdset *pfdset, int last_valid_idx)
20{
21 int i;
22
23 for (i = last_valid_idx; i >= 0 && pfdset->fd[i].fd == -1; i--)
24 ;
25
26 return i;
27}
28
29static void
30fdset_move(struct fdset *pfdset, int dst, int src)

Callers 1

fdset_shrink_nolockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected