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

Function filt_timerstart

freebsd/kern/kern_event.c:762–777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

760}
761
762static void
763filt_timerstart(struct knote *kn, sbintime_t to)
764{
765 struct kq_timer_cb_data *kc;
766
767 kc = kn->kn_ptr.p_v;
768 if ((kn->kn_sfflags & NOTE_ABSTIME) != 0) {
769 kc->next = to;
770 kc->to = 0;
771 } else {
772 kc->next = to + sbinuptime();
773 kc->to = to;
774 }
775 callout_reset_sbt_on(&kc->c, kc->next, 0, filt_timerexpire, kn,
776 PCPU_GET(cpuid), C_ABSOLUTE);
777}
778
779static void
780filt_timerdetach(struct knote *kn)

Callers 2

filt_timerattachFunction · 0.85
filt_timertouchFunction · 0.85

Calls 2

sbinuptimeFunction · 0.85
callout_reset_sbt_onFunction · 0.85

Tested by

no test coverage detected