Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jan 2026 15:45:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        emulation@FreeBSD.org
Subject:   [Bug 292496] linux_timer_create error when using LINUX_CLOCK_MONOTONIC
Message-ID:  <bug-292496-4077-GbzoTxhJXw@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-292496-4077@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292496

--- Comment #2 from Andrey Antufyev <andrey.antufyev@yandex.ru> ---
(In reply to Warner Losh from comment #1)
> #define MAX_CLOCKS      (CLOCK_TAI+1)
> #define CLOCK_TAI       16
Indeed. I checked it on 16-CURRENT, but didn't look at its source code.

Well, the error remains in CURRENT, now it occurs on the next check in
kern_ktimer_create: if (posix_clocks[clock_id].timer_create == NULL).

I don't know what register_posix_clock is, but I added
register_posix_clock(CLOCK_UPTIME, &rt_clock) to itimer_start() and it worked.

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-292496-4077-GbzoTxhJXw>