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

Function sys_timerfd_create

components/lwp/lwp_syscall.c:10637–10644  ·  view source on GitHub ↗

* @brief Create a timer file descriptor. * * This function creates a timer that can be used to notify a process after a specified * amount of time has passed. The timer is represented by a file descriptor, which can be * used with functions such as `read` and `poll` to monitor and retrieve notifications * about timer expirations. * * @param[in] clockid The clock to use for the timer. Possib

Source from the content-addressed store, hash-verified

10635 * by reading from the returned file descriptor.
10636 */
10637sysret_t sys_timerfd_create(int clockid, int flags)
10638{
10639 int ret;
10640
10641 ret = timerfd_create(clockid, flags);
10642
10643 return (ret < 0 ? GET_ERRNO() : ret);
10644}
10645
10646/**
10647 * @brief Set or modify the expiration time for a timer.

Callers

nothing calls this directly

Calls 1

timerfd_createFunction · 0.85

Tested by

no test coverage detected