MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_fdmap_ctx

Function acl_fdmap_ctx

lib_acl/src/event/fdmap.c:91–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void *acl_fdmap_ctx(ACL_FD_MAP *map, int fd)
92{
93 const char *myname = "acl_fdmap_ctx";
94
95 if (map == NULL) {
96 acl_msg_error("%s(%d): map NULL", myname, __LINE__);
97 return NULL;
98 }
99
100 if (fd >= map->size) {
101 acl_msg_error("%s(%d): fd(%d) >= map's size(%d)",
102 myname, __LINE__, fd, map->size);
103 return NULL;
104 }
105
106 return map->table[fd].ctx;
107}
108
109void acl_fdmap_free(ACL_FD_MAP *map)
110{

Callers 4

event_loopFunction · 0.85
events_poll.cFile · 0.85
event_loopFunction · 0.85
event_loopFunction · 0.85

Calls 1

acl_msg_errorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…