Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Sep 2024 13:42:28 +0300
From:      Konstantin Belousov <kib@freebsd.org>
To:        Paul Floyd <paulf2718@gmail.com>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: ioctls that return file descriptors
Message-ID:  <ZuVolA_iLwFrg6V9@kib.kiev.ua>
In-Reply-To: <fa8d2b6f-2819-4e8d-99eb-997f2c0acdb8@gmail.com>
References:  <fa8d2b6f-2819-4e8d-99eb-997f2c0acdb8@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 14, 2024 at 10:10:14AM +0000, Paul Floyd wrote:
> Hi
> 
> Does anyone know of any FreeBSD ioctls that return file descriptors?
> 
> An example from Linux is DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD.

I expect that the same ioctl is implemented by the FreeBSD drm kmod. 

For in-tree, you could search for falloc_caps() calls.  Quick grep
shows it is only used by expected syscalls, not by drivers.



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