git: kernel - Implement ppoll system call with precise microseconds timeout.

Imre Vadasz ivadasz at crater.dragonflybsd.org
Sun Jun 19 00:56:32 PDT 2016


commit 6d2444c4cfa09766909b503f09481b11af9d31ac
Author: Imre Vadasz <imre at vdsz.com>
Date:   Sat Dec 12 21:26:09 2015 +0100

    kernel - Implement ppoll system call with precise microseconds timeout.
    
    * Implement a maximum timeout of 2000s, because systimer(9) just accepts an
      int timeout in microseconds.
    
    * Add kern.kv_sleep_threshold sysctl variable for tuning the threshold for
      the ppoll sleep duration (in nanoseconds), below which we will
      busy-loop with DELAY instead of using tsleep for waiting.

Summary of changes:
 lib/libc/include/namespace.h           |  1 +
 lib/libc/include/un-namespace.h        |  1 +
 lib/libc/sys/Makefile.inc              |  1 +
 lib/libc/sys/Symbol.map                |  3 ++
 lib/libc/sys/poll.2                    | 17 +++++++-
 lib/libthread_xu/pthread.map           |  6 +++
 lib/libthread_xu/thread/thr_private.h  |  2 +
 lib/libthread_xu/thread/thr_syscalls.c | 21 +++++++++
 sys/emulation/linux/linux_epoll.c      |  4 +-
 sys/kern/init_sysent.c                 |  1 +
 sys/kern/kern_event.c                  | 73 +++++++++++++++++++++++++++++--
 sys/kern/sys_generic.c                 | 79 +++++++++++++++++++++++++++++++---
 sys/kern/syscalls.c                    |  1 +
 sys/kern/syscalls.master               |  2 +
 sys/sys/event.h                        |  4 +-
 sys/sys/poll.h                         | 11 +++++
 sys/sys/syscall.h                      |  3 +-
 sys/sys/syscall.mk                     |  3 +-
 sys/sys/sysproto.h                     | 10 +++++
 sys/sys/sysunion.h                     |  1 +
 20 files changed, 227 insertions(+), 17 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6d2444c4cfa09766909b503f09481b11af9d31ac


-- 
DragonFly BSD source repository


More information about the Commits mailing list