MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / timerfd_gettime

Function timerfd_gettime

components/libc/posix/io/timerfd/timerfd.c:643–646  ·  view source on GitHub ↗

* @brief Retrieves the current value and interval of a timer. * * The `timerfd_gettime` function queries the settings of the timer associated * with the specified timer file descriptor. * * @param fd The file descriptor of the timer, obtained from `timerfd_create`. * @param cur A pointer to a `itimerspec` structure where the current timer * settings will be stored: *

Source from the content-addressed store, hash-verified

641 * @see timerfd_create, timerfd_settime
642 */
643int timerfd_gettime(int fd, struct itimerspec *cur)
644{
645 return timerfd_do_gettime(fd, cur);
646}

Callers 1

sys_timerfd_gettimeFunction · 0.85

Calls 1

timerfd_do_gettimeFunction · 0.85

Tested by

no test coverage detected