Date: Fri, 19 Jan 2024 19:50:04 +0100 From: Jan Beich <jbeich@FreeBSD.org> To: Rozhuk Ivan <rozhuk.im@gmail.com> Cc: FreeBSD Hackers <freebsd-hackers@FreeBSD.org>, FreeBSD Mailing List <freebsd-ports@freebsd.org> Subject: Re: kcmp implementation for mesa Message-ID: <5xzp-noo3-wny@FreeBSD.org> In-Reply-To: <20240119131047.6975f574@rimwks.local> (Rozhuk Ivan's message of "Fri, 19 Jan 2024 13:10:47 %2B0200") References: <20240119131047.6975f574@rimwks.local>
next in thread | previous in thread | raw e-mail | index | archive | help
Rozhuk Ivan <rozhuk.im@gmail.com> writes: > Hi! > > > graphics/mesa-* uses SYS_kcmp [1] to compare two fds: > > int > os_same_file_description(int fd1, int fd2) > { > pid_t pid = getpid(); > > /* Same file descriptor trivially implies same file description */ > if (fd1 == fd2) > return 0; > > return syscall(SYS_kcmp, pid, pid, KCMP_FILE, fd1, fd2); > } > > FreeBSD does not implemet this and we got in terminal: > "amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description." See https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6881 It's already applied in graphics/mesa-devel.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5xzp-noo3-wny>