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

Function abs_timeout_gethz

freebsd/kern/kern_umtx.c:783–792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

781}
782
783static int
784abs_timeout_gethz(struct abs_timeout *timo)
785{
786 struct timespec tts;
787
788 if (timespeccmp(&timo->end, &timo->cur, <=))
789 return (-1);
790 timespecsub(&timo->end, &timo->cur, &tts);
791 return (tstohz(&tts));
792}
793
794static uint32_t
795umtx_unlock_val(uint32_t flags, bool rb)

Callers 1

umtxq_sleepFunction · 0.85

Calls 1

tstohzFunction · 0.70

Tested by

no test coverage detected