This change names newly opened timerfds "timerfd".
Signed-off-by: Andrei Tatar <andrei@unikraft.io>
Approved-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
GitHub-Closes: #1592
static const char TIMERFD_VOLID[] = "timerfd_vol";
+#define TIMERFD_FNAME "timerfd"
+#define TIMERFD_FNAME_LEN (sizeof(TIMERFD_FNAME) - 1)
struct timerfd_node {
struct itimerspec set;
mode |= O_NONBLOCK;
if (flags & TFD_CLOEXEC)
mode |= O_CLOEXEC;
- ret = uk_fdtab_open(timerf, mode);
+ ret = uk_fdtab_open_named(timerf, mode, TIMERFD_FNAME,
+ TIMERFD_FNAME_LEN);
uk_file_release(timerf);
return ret;
}