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

Function fdset_shrink

dpdk/lib/vhost/fd_man.c:55–61  ·  view source on GitHub ↗

* Find deleted fd entries and remove them */

Source from the content-addressed store, hash-verified

53 * Find deleted fd entries and remove them
54 */
55static void
56fdset_shrink(struct fdset *pfdset)
57{
58 pthread_mutex_lock(&pfdset->fd_mutex);
59 fdset_shrink_nolock(pfdset);
60 pthread_mutex_unlock(&pfdset->fd_mutex);
61}
62
63/**
64 * Returns the index in the fdset for a given fd.

Callers 1

fdset_event_dispatchFunction · 0.85

Calls 3

pthread_mutex_lockFunction · 0.85
fdset_shrink_nolockFunction · 0.85
pthread_mutex_unlockFunction · 0.85

Tested by

no test coverage detected