Date: Thu, 26 Mar 2026 10:17:52 -0600 From: Warner Losh <imp@bsdimp.com> To: Phrolova <me@phrolova.moe> Cc: freebsd-emulation@freebsd.org Subject: Re: [RFC] Porting ntsync from Linux to FreeBSD for WINE/Proton compatibility Message-ID: <CANCZdfoUwvNvPOurW%2By2ordsHePaTF9RDdC==aOECju%2BXZgFSg@mail.gmail.com> In-Reply-To: <DHC77DNX3YML.YDYSX6OYWI17@phrolova.moe>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Wed, Mar 25, 2026 at 3:58 PM Phrolova <me@phrolova.moe> wrote: > Hello! > > I intend to port the ntsync kernel driver from Linux to FreeBSD to > provide compatibility for WINE/Proton to be used with games that require > it. > > One example of such a game is Arknights: Endfield. It crashes after > 10-15 minutes without ntsync. > > The files worth looking at are: > https://github.com/torvalds/linux/blob/master/drivers/misc/ntsync.c > and > https://github.com/torvalds/linux/blob/master/include/uapi/linux/ntsync.h > > Has anyone tried this before and does anyone else have interest in using > such a thing? > There was a thread on discord on #gaming (https://discord.gg/freebsd) about how someone had written a loadable module that would do this already. Maybe you could learn more by going there and work with people talking about it there... Warner [-- Attachment #2 --] <div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Mar 25, 2026 at 3:58 PM Phrolova <me@phrolova.moe> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello!<br> <br> I intend to port the ntsync kernel driver from Linux to FreeBSD to<br> provide compatibility for WINE/Proton to be used with games that require<br> it.<br> <br> One example of such a game is Arknights: Endfield. It crashes after<br> 10-15 minutes without ntsync.<br> <br> The files worth looking at are:<br> <a href="https://github.com/torvalds/linux/blob/master/drivers/misc/ntsync.c" rel="noreferrer" target="_blank">https://github.com/torvalds/linux/blob/master/drivers/misc/ntsync.c</a><br> and<br> <a href="https://github.com/torvalds/linux/blob/master/include/uapi/linux/ntsync.h" rel="noreferrer" target="_blank">https://github.com/torvalds/linux/blob/master/include/uapi/linux/ntsync.h</a><br> <br> Has anyone tried this before and does anyone else have interest in using<br> such a thing?<br></blockquote><div><br></div><div>There was a thread on discord on #gaming (<a href="https://discord.gg/freebsd">https://discord.gg/freebsd</a>) about how someone had written a loadable module that would do this already. Maybe you could learn more by going there and work with people talking about it there...</div><div><br></div><div>Warner</div></div></div>home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfoUwvNvPOurW%2By2ordsHePaTF9RDdC==aOECju%2BXZgFSg>
