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

Function restore_fstack_fd

adapter/syscall/ff_hook_syscall.c:258–264  ·  view source on GitHub ↗

Restore socket fd. */

Source from the content-addressed store, hash-verified

256
257/* Restore socket fd. */
258static inline int restore_fstack_fd(int sockfd) {
259 if(sockfd < ff_kernel_max_fd) {
260 return sockfd;
261 }
262
263 return sockfd - ff_kernel_max_fd;
264}
265
266int is_fstack_fd(int sockfd) {
267 if (unlikely(inited == 0/* && ff_adapter_init() < 0*/)) {

Callers 3

ff_hook_epoll_ctlFunction · 0.70
keventFunction · 0.70
ff_hook_selectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected