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

Function kqueue

adapter/syscall/ff_hook_syscall.c:2400–2421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2398}
2399
2400int
2401kqueue()
2402{
2403 int ret = -1;
2404
2405 DEBUG_LOG("run kqueue\n");
2406
2407 if (unlikely(inited == 0)) {
2408 errno = ENOSYS;
2409 return -1;
2410 }
2411
2412 SYSCALL(FF_SO_KQUEUE, NULL);
2413
2414 if (ret >= 0) {
2415 ret = convert_fstack_fd(ret);
2416 }
2417
2418 DEBUG_LOG("get fd:%d\n", ret);
2419
2420 return ret;
2421}
2422
2423int
2424kevent(int kq, const struct kevent *changelist, int nchanges,

Callers 2

mainFunction · 0.70
loopFunction · 0.70

Calls 1

convert_fstack_fdFunction · 0.70

Tested by

no test coverage detected