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

Function timerfd_create

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

* @brief Creates a file descriptor for a timer. * * The `timerfd_create` function creates a new timer object that generates * timer expiration notifications via a file descriptor. * * @param clockid The clock ID that specifies the clock to be used as the * timing base for the timer. Common values include: * - `CLOCK_REALTIME`: A system-wide clock representing

Source from the content-addressed store, hash-verified

575 * @see timerfd_settime, timerfd_gettime
576 */
577int timerfd_create(int clockid, int flags)
578{
579 return timerfd_do_create(clockid, flags);
580}
581
582/**
583 * @brief Sets the time for a timer file descriptor.

Callers 1

sys_timerfd_createFunction · 0.85

Calls 1

timerfd_do_createFunction · 0.85

Tested by

no test coverage detected