/freebsd-current/contrib/kyua/utils/signals/ |
H A D | timer_fwd.hpp | 30 /// Forward declarations for utils/signals/timer.hpp 39 class timer;
|
H A D | timer.hpp | 29 /// \file utils/signals/timer.hpp 32 /// The timer module and class implement a mechanism to program multiple timers 33 /// concurrently by using a deadline scheduler and leveraging the "single timer" 51 void invoke_do_fired(timer*); 55 /// Individual timer. 59 class timer : noncopyable { class in namespace:utils::signals 65 friend void detail::invoke_do_fired(timer*); 72 timer(const utils::datetime::delta&); 73 virtual ~timer(void);
|
H A D | timer.cpp | 29 #include "utils/signals/timer.hpp" 68 /// \param delta The time to the first activation of the programmed timer. 70 /// existing system timer. 83 throw signals::system_error("Failed to program system's interval timer", 89 /// Deadline scheduler for all user timers on top of the unique system timer. 95 typedef std::set< signals::timer* > timers_set; 98 typedef std::vector< signals::timer* > timers_vector; 106 /// The original timer before any timer was programmed. 112 /// Time of the current activation of the timer 122 add_to_all_timers(signals::timer* timer) argument 136 remove_from_all_timers(signals::timer* timer) argument 242 global_state(signals::timer* timer, const datetime::timestamp& now) argument 293 program_new(signals::timer* timer, const datetime::timestamp& now) argument 311 unprogram(signals::timer* timer) argument 371 invoke_do_fired(timer* timer) argument 421 signals::timer::timer(const datetime::delta& delta) function in class:signals::timer [all...] |
H A D | timer_test.cpp | 29 #include "utils/signals/timer.hpp" 56 /// A timer that inserts an element into a vector on activation. 57 class delayed_inserter : public signals::timer { 75 /// \param delta Time to the timer activation. 80 signals::timer(delta), _destination(destination), _item(item) 97 wait_timers(const std::vector< signals::timer* >& timers) 102 for (std::vector< signals::timer* >::const_iterator 104 const signals::timer* timer = *iter; local 105 if (timer 316 delayed_inserter* timer = new delayed_inserter( local [all...] |
/freebsd-current/sys/dev/isci/ |
H A D | isci_timer.c | 41 struct ISCI_TIMER *timer = (struct ISCI_TIMER *)arg; local 43 isci_log_message(3, "TIMER", "timeout %p\n", timer); 45 /* callout_stop() will *not* keep the timer from running if it is 49 * the timer routine should actually be run or not. 51 if (timer->is_started == TRUE) 52 timer->callback(timer->cookie); 56 * @brief This callback method asks the user to start the supplied timer. 60 * removes the timer from it's list when a timer actuall 75 scif_cb_timer_start(SCI_CONTROLLER_HANDLE_T controller, void *timer, uint32_t milliseconds) argument 96 scif_cb_timer_stop(SCI_CONTROLLER_HANDLE_T controller, void *timer) argument 131 struct ISCI_TIMER *timer; local [all...] |
/freebsd-current/sys/compat/linuxkpi/common/include/linux/ |
H A D | timer.h | 55 #define timer_setup(timer, func, flags) do { \ 57 (timer)->function_415 = (func); \ 58 (timer)->data = (unsigned long)(timer); \ 59 callout_init(&(timer)->callout, 1); \ 62 #define setup_timer(timer, func, dat) do { \ 63 (timer)->function = (func); \ 64 (timer)->data = (dat); \ 65 callout_init(&(timer)->callout, 1); \ 68 #define __setup_timer(timer, fun [all...] |
/freebsd-current/sys/dev/isci/scil/ |
H A D | scif_sas_timer.c | 85 void * timer 90 if (timer != NULL) 92 scif_cb_timer_destroy(fw_controller, timer); 93 timer = NULL; 101 void * timer, 108 scif_cb_timer_start(fw_controller, timer, milliseconds); 115 void * timer 121 scif_cb_timer_stop(fw_controller, timer); 99 scic_cb_timer_start( SCI_CONTROLLER_HANDLE_T controller, void * timer, U32 milliseconds ) argument
|
/freebsd-current/crypto/heimdal/lib/roken/ |
H A D | localtime_r.c | 43 localtime_r(const time_t *timer, struct tm *result) argument 47 return (localtime_s(result, timer) == 0)? result : NULL; 52 tm = localtime((time_t *)timer);
|
/freebsd-current/contrib/kyua/utils/process/ |
H A D | deadline_killer.hpp | 37 #include "utils/signals/timer.hpp" 44 class deadline_killer : public utils::signals::timer {
|
H A D | deadline_killer.cpp | 40 /// \param delta Time to the timer activation. 44 signals::timer(delta), _pid(pid)
|
/freebsd-current/contrib/ntp/scripts/deprecated/ |
H A D | freq_adj.in | 16 chop($timer = `sysctl -n kern.timecounter.hardware 2> /dev/null`); 18 $timer =~ tr/\U/\L/; 20 if ($timer eq '') { 25 $timer = $1; 32 $opt_t = $timer if !defined($opt_t); 34 if ($timer ne '') { # $timer found... 36 if ($timer ne $opt_t) { # - - and they differ 37 warn "You specified a $opt_t timer but I detected a $timer time [all...] |
/freebsd-current/sys/contrib/openzfs/include/sys/ |
H A D | zfs_delay.h | 25 #include <sys/timer.h>
|
/freebsd-current/contrib/ntp/sntp/libevent/test/ |
H A D | test-changelist.c | 65 start_cpu_usage_timer(struct cpu_usage_timer *timer) argument 70 timer->thread = GetCurrentThread(); 71 r = GetThreadTimes(timer->thread, &createtime, &exittime, 72 &timer->usertimeBegin, &timer->kerneltimeBegin); 75 timer->ticksBegin = clock(); 78 evutil_gettimeofday(&timer->timeBegin, NULL); 104 get_cpu_usage(struct cpu_usage_timer *timer, double *secElapsedOut, argument 118 r = GetThreadTimes(timer->thread, &createtime, &exittime, 121 usertime_seconds = filetime_diff(&timer 170 struct cpu_usage_timer timer; local [all...] |
/freebsd-current/sys/sys/ |
H A D | timers.h | 75 int (*timer_create)(struct itimer *timer); 76 int (*timer_settime)(struct itimer * timer, int flags, 79 int (*timer_delete)(struct itimer * timer); 80 int (*timer_gettime)(struct itimer * timer,
|
/freebsd-current/contrib/libevent/test/ |
H A D | test-changelist.c | 65 start_cpu_usage_timer(struct cpu_usage_timer *timer) argument 70 timer->thread = GetCurrentThread(); 71 r = GetThreadTimes(timer->thread, &createtime, &exittime, 72 &timer->usertimeBegin, &timer->kerneltimeBegin); 75 timer->ticksBegin = clock(); 78 evutil_gettimeofday(&timer->timeBegin, NULL); 104 get_cpu_usage(struct cpu_usage_timer *timer, double *secElapsedOut, argument 118 r = GetThreadTimes(timer->thread, &createtime, &exittime, 121 usertime_seconds = filetime_diff(&timer 170 struct cpu_usage_timer timer; local [all...] |
/freebsd-current/sys/contrib/openzfs/include/os/linux/spl/sys/ |
H A D | timer.h | 31 #include <linux/timer.h> 61 #define from_timer(var, timer, timer_field) \ 62 container_of(timer, typeof(*var), timer_field) 74 timer_setup(struct timer_list *timer, void (*func)(spl_timer_list_t), u32 fl) argument 77 (timer)->flags = fl; 79 init_timer(timer); 80 setup_timer(timer, func, (spl_timer_list_t)(timer));
|
/freebsd-current/lib/librt/ |
H A D | timer.c | 81 struct __timer *timer; local 86 timer = malloc(sizeof(struct __timer)); 87 if (timer == NULL) 91 ret = __sys_ktimer_create(clockid, evp, &timer->oshandle); 94 free(timer); 98 timer->node = NULL; 99 *timerid = timer; 104 free(timer); 111 free(timer); 117 ret = __sys_ktimer_create(clockid, &ev, &timer [all...] |
/freebsd-current/sys/amd64/vmm/io/ |
H A D | vhpet.c | 92 } timer[VHPET_NUM_TIMERS]; member in struct:vhpet 109 cap &= ~HPET_CAP_COUNT_SIZE; /* 32-bit timer */ 129 if ((vhpet->timer[n].cap_config & msi_enable) == msi_enable) 139 * If the timer is configured to use MSI then treat it as if the 140 * timer is not connected to the ioapic. 145 return ((vhpet->timer[n].cap_config & HPET_TCNF_INT_ROUTE) >> 9); 181 KASSERT(pin != 0, ("vhpet timer %d irq incorrectly routed", n)); 191 return ((vhpet->timer[n].cap_config & HPET_TCNF_TYPE) != 0); 198 return ((vhpet->timer[n].cap_config & HPET_TCNF_INT_ENB) != 0); 206 "timer [all...] |
/freebsd-current/tests/sys/kqueue/libkqueue/ |
H A D | Makefile | 11 timer.c \
|
/freebsd-current/contrib/ntp/libntp/lib/isc/include/isc/ |
H A D | timer.h | 18 /* $Id: timer.h,v 1.43 2009/09/02 23:48:03 tbox Exp $ */ 27 /*! \file isc/timer.h 44 * Timers can change type. It is typical to create a timer as 45 * an 'inactive' timer and then change it into a 'ticker' or 46 * 'once' timer. 51 * Clients of this module must not be holding a timer's task's lock when 52 * making a call that affects that timer. Failure to follow this rule 106 /*% Timer and timer manager methods */ 120 void (*attach)(isc_timer_t *timer, isc_timer_t **timerp); 122 isc_result_t (*reset)(isc_timer_t *timer, isc_timertype_ [all...] |
/freebsd-current/lib/libc/isc/ |
H A D | ev_timers.c | 64 evTimer * timer; member in struct:__anon104 244 ctx->cur->u.timer.this == del) { 245 evPrintf(ctx, 8, "deferring delete of timer (executing)\n"); 248 * clean up the timer. 276 evTimer *timer = id.opaque; local 281 if (heap_element(ctx->timers, timer->index) != timer) 285 timer->mode |= EV_TMR_RATE; 287 timer->mode &= ~EV_TMR_RATE; 303 evTimer *timer local 400 evTimer *timer = opaqueID.opaque; local 453 evTimer *timer; local [all...] |
/freebsd-current/sys/dev/mthca/ |
H A D | mthca_catas.c | 37 #include <linux/timer.h> 146 mod_timer(&dev->catas_err.timer, 154 init_timer(&dev->catas_err.timer); 169 dev->catas_err.timer.data = (unsigned long) dev; 170 dev->catas_err.timer.function = poll_catas; 171 dev->catas_err.timer.expires = jiffies + MTHCA_CATAS_POLL_INTERVAL; 173 add_timer(&dev->catas_err.timer); 178 del_timer_sync(&dev->catas_err.timer);
|
/freebsd-current/usr.sbin/rtadvd/ |
H A D | Makefile | 20 SRCS= rtadvd.c rrenum.c advcap.c if.c config.c timer.c timer_subr.c \
|
/freebsd-current/sys/dev/ocs_fc/ |
H A D | ocs_os.c | 922 ocs_timer_t *timer = t; local 924 if (callout_pending(&timer->callout)) { 929 if (!callout_active(&timer->callout)) { 934 callout_deactivate(&timer->callout); 936 if (timer->func) { 937 timer->func(timer->data); 942 ocs_setup_timer(ocs_os_handle_t os, ocs_timer_t *timer, void(*func)(void *arg), void *data, uint32_t timeout_ms) argument 947 if (timer == NULL) { 952 if (!mtx_initialized(&timer 978 ocs_mod_timer(ocs_timer_t *timer, uint32_t timeout_ms) argument 1005 ocs_timer_pending(ocs_timer_t *timer) argument 1011 ocs_del_timer(ocs_timer_t *timer) argument [all...] |
/freebsd-current/sys/arm64/vmm/io/ |
H A D | vtimer.c | 100 * Disable the timer interrupt. This will prevent the interrupt from 104 * This is safe to do because the guest disabled the timer, and then 118 * The guest *MUST* use the same timer frequency as the host. The 133 * Configure the Counter-timer Hypervisor Control Register for the VM. 154 * Configure physical timer interrupts for the VCPU. 157 * ~CNTP_CTL_ENABLE: disable the timer 194 /* The active VM was destroyed, stop the timer. */ 209 struct vtimer_timer *timer; local 212 timer = &hypctx->vtimer_cpu.virt_timer; 215 if (!timer_enabled(timer 252 struct vtimer_timer *timer; local 282 struct vtimer_timer *timer; local [all...] |