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

Function is_fstack_fd

adapter/syscall/ff_hook_syscall.c:266–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266int is_fstack_fd(int sockfd) {
267 if (unlikely(inited == 0/* && ff_adapter_init() < 0*/)) {
268 return 0;
269 }
270
271 /* FIXED ME: ff_linux_socket not limit fd < ff_kernel_max_fd, may be Misjudgment */
272 return sockfd >= ff_kernel_max_fd;
273}
274
275static inline uint64_t
276ff_bitmap_first_set(fd_mask *ai, int set_words)

Callers 2

ff_hook_epoll_ctlFunction · 0.70
ff_hook_selectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected