git: pps_fetch: introduce a helper to handle timeouts

Matthew Dillon dillon at crater.dragonflybsd.org
Wed May 15 11:43:11 PDT 2024


commit 0c4dbac108483594a0c23292c970faa8ab75465e
Author: Dan Cross <cross at gajendra.net>
Date:   Sat May 11 01:46:33 2024 +0000

    pps_fetch: introduce a helper to handle timeouts
    
    Introduce a helper function that handles providing a timeout so that
    we can wait for an event, and call it from the PPS_IOC_FETCH ioctl case.
    Modeled after the same code in FreeBSD.
    
    Signed-off-by: Dan Cross <cross at gajendra.net>

Summary of changes:
 sys/kern/kern_clock.c | 43 +++++++++++++++++++++++++++++++++++++++----
 1 file changed, 39 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0c4dbac108483594a0c23292c970faa8ab75465e


-- 
DragonFly BSD source repository


More information about the Commits mailing list