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

Function accept

app/redis-6.2.6/src/anet_ff.c:264–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264int
265accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen)
266{
267 if (unlikely(inited == 0)) {
268 INIT_FUNCTION(accept);
269 return real_accept(sockfd, addr, addrlen);
270 }
271
272 if (ff_fdisused(sockfd)) {
273 return ff_accept(sockfd, (struct linux_sockaddr *)addr, addrlen);
274 } else {
275 return real_accept(sockfd, addr, addrlen);
276 }
277}
278
279int
280accept4(int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags)

Callers 8

anetGenericAcceptFunction · 0.70
socket_listenerFunction · 0.50
memif_listener_handlerFunction · 0.50
vhost_user_start_serverFunction · 0.50
mlx5_pmd_socket_handleFunction · 0.50

Calls 2

ff_fdisusedFunction · 0.85
ff_acceptFunction · 0.85

Tested by

no test coverage detected