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

Function ff_sys_kevent

adapter/syscall/ff_socket_ops.c:344–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344static int
345ff_sys_kevent(struct ff_kevent_args *args)
346{
347 int ret;
348
349 ret = ff_kevent(args->kq, args->changelist, args->nchanges,
350 args->eventlist, args->nevents, args->timeout);
351
352 if (args->nchanges) {
353 args->nchanges = 0;
354 }
355
356 /*
357 * If timeout is NULL, and no event triggered,
358 * no post sem, and next loop will continue to call ff_sys_kevent,
359 * until some event triggered
360 */
361 if (args->timeout == NULL && ret == 0 && args->nevents != 0) {
362 sem_flag = 0;
363 } else {
364 sem_flag = 1;
365 }
366
367 return ret;
368}
369
370static pid_t
371ff_sys_fork(struct ff_fork_args *args)

Callers 1

ff_so_handlerFunction · 0.85

Calls 1

ff_keventFunction · 0.85

Tested by

no test coverage detected