| #
d5e5fed1
|
| 31-Dec-2025 |
Alex S <iwtcex@gmail.com> |
linux: add hidraw ioctl handler
First step towards getting the Linux version of SDL with HIDAPI gamepad drivers to work. Not quite complte as SDL expects to find some information in sysfs as well.
linux: add hidraw ioctl handler
First step towards getting the Linux version of SDL with HIDAPI gamepad drivers to work. Not quite complte as SDL expects to find some information in sysfs as well.
Signed-off-by: Alex S <iwtcex@gmail.com> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1938
show more ...
|
| #
85bf3288
|
| 06-Jan-2026 |
mothcompute <mothcompute@protonmail.com> |
linux: support termios2 ioctls
Signed-off-by: mothcompute <mothcompute@protonmail.com> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1949
|
| #
790c2731
|
| 20-Oct-2025 |
Zhenlei Huang <zlei@FreeBSD.org> |
linux: Make the macro LINUX_IOCTL_SET public
There're some other drivers want to register and unregister linux ioctl handler. Move the macro LINUX_IOCTL_SET from tdfx_linux.h to linux_ioctl.h so tha
linux: Make the macro LINUX_IOCTL_SET public
There're some other drivers want to register and unregister linux ioctl handler. Move the macro LINUX_IOCTL_SET from tdfx_linux.h to linux_ioctl.h so that they can also benefit it.
While here, rename the declaration of linux ioctl function to be consistent with the name of the handler.
Meanwhile, drop a comment about the macro, since its function is obvious.
Reviewed by: markj MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D53158
show more ...
|
| #
31eec6fe
|
| 09-Oct-2024 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
linux: support IUTF8
Make Linuxulator support the recently added IUTF8 termios(4) flag.
Reviewed By: dchagin, emaste, imp Differential Revision: https://reviews.freebsd.org/D44525
|
| #
ad9cc86b
|
| 14-Jun-2024 |
Chuck Tuffli <chuck@FreeBSD.org> |
linux: Translate Linux NVME ioctls to the lower layers.
The lower layers implement a ABI compatible Linux ioctl for a few of the Linux IOCTLs. Translate them and pass them down. Since they are ABI c
linux: Translate Linux NVME ioctls to the lower layers.
The lower layers implement a ABI compatible Linux ioctl for a few of the Linux IOCTLs. Translate them and pass them down. Since they are ABI compatible, just use the nvme ioctl name.
Co-Authored-by: Warner Losh <imp@bsdimp.com> Reviewed by: chuck Differential Revision: https://reviews.freebsd.org/D45416
show more ...
|
| #
1f2b31f7
|
| 17-Aug-2023 |
Alvin Chen <weike.chen_dell.com> |
linux(4): Add 2 Linux socket ioctl commands
Support 2 Linux socket ioctl commands: SIOCGIFMETRIC, SIOCSIFMETRIC.
Differential revision: https://reviews.freebsd.org/D39786 MFC after: 1 month
|
| #
95ee2897
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
| #
4d846d26
|
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
| #
1866c766
|
| 29-Apr-2021 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
linux: Improve debugging by recognizing TIOCGPTPEER
Sponsored By: EPSRC
|
| #
77311940
|
| 02-Nov-2020 |
Conrad Meyer <cem@FreeBSD.org> |
linux(4): Quiesce unrecognized ioctl warning for F2FS query
On Linux, sqlite probes for underlying F2FS filesystems that support certain kinds of atomic update with this ioctl. The expected result
linux(4): Quiesce unrecognized ioctl warning for F2FS query
On Linux, sqlite probes for underlying F2FS filesystems that support certain kinds of atomic update with this ioctl. The expected result on non-F2FS filesystem (i.e., all FreeBSD filesystems) is any error value.
Minimally implement the ioctl and avoid the warning message.
(This shows up in Linux Chrome, which embeds sqlite.)
Reviewed by: emaste, trasz Differential Revision: https://reviews.freebsd.org/D27050
show more ...
|
| #
53efdb55
|
| 02-Nov-2020 |
Conrad Meyer <cem@FreeBSD.org> |
linux(4): Deduplicate ioctl range construction with a helper macro
No functional change.
Reviewed by: emaste, trasz Differential Revision: https://reviews.freebsd.org/D27049
|
| #
79e3da06
|
| 17-Sep-2020 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Add support for SOUND_MIXER_WRITE_MONITOR ioctl. Fixes alsamixer(1) on my x220.
Reviewed by: emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.fr
Add support for SOUND_MIXER_WRITE_MONITOR ioctl. Fixes alsamixer(1) on my x220.
Reviewed by: emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25806
show more ...
|
| #
46888ded
|
| 04-Sep-2020 |
Mark Johnston <markj@FreeBSD.org> |
Add emulation support for the Linux kcov(4) ioctl API.
This makes it possible to run an unmodified Linux syzkaller executor against the Linuxulator, and have it gather code coverage information.
Sp
Add emulation support for the Linux kcov(4) ioctl API.
This makes it possible to run an unmodified Linux syzkaller executor against the Linuxulator, and have it gather code coverage information.
Sponsored by: The FreeBSD Foundation
show more ...
|
| #
c7aa572c
|
| 31-Jul-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
| #
aa754121
|
| 19-Jul-2020 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Make linux(4) support the BLKPBSZGET ioctl. Oracle uses it.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25694
|
| #
fc23be91
|
| 10-Mar-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r358832 through r358848.
|
| #
d845d3dc
|
| 10-Mar-2020 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Add support for the device statistics IOCTL, needed by the coming linux_libusb upgrade.
MFC after: 3 days Sponsored by: Mellanox Technologies
|
| #
b9594cd9
|
| 29-Dec-2019 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Implement Linux BLKGETSIZE64 ioctl.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
|
| #
2cf9eb6c
|
| 16-Dec-2019 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Add a hack to make ^T work for Linux binaries, enabled with 'compat.linux.preserve_vstatus=1' sysctl.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.f
Add a hack to make ^T work for Linux binaries, enabled with 'compat.linux.preserve_vstatus=1' sysctl.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D21967
show more ...
|
| #
a63915c2
|
| 28-Jul-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @r350386
Sponsored by: The FreeBSD Foundation
|
| #
0fabd7b5
|
| 04-Jul-2019 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Return ENOTSUP for Linux FS_IOC_FIEMAP ioctl.
Linux man(1) calls it for no good reason; this avoids the console spam (eg '(man): ioctl fd=4, cmd=0x660b ('f',11) is not implemented').
Reviewed by: e
Return ENOTSUP for Linux FS_IOC_FIEMAP ioctl.
Linux man(1) calls it for no good reason; this avoids the console spam (eg '(man): ioctl fd=4, cmd=0x660b ('f',11) is not implemented').
Reviewed by: emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D20690
show more ...
|
| #
c06e7b66
|
| 07-Nov-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r340126 through r340212.
|
| #
8fc08087
|
| 06-Nov-2018 |
Tijl Coosemans <tijl@FreeBSD.org> |
On amd64 both Linux compat modules, linux.ko and linux64.ko, provide linux_ioctl_(un)register_handler that allows other driver modules to register ioctl handlers. The ioctl syscall implementation in
On amd64 both Linux compat modules, linux.ko and linux64.ko, provide linux_ioctl_(un)register_handler that allows other driver modules to register ioctl handlers. The ioctl syscall implementation in each Linux compat module iterates over the list of handlers and forwards the call to the appropriate driver. Because the registration functions have the same name in each module it is not possible for a driver to support both 32 and 64 bit linux compatibility.
Move the list of ioctl handlers to linux_common.ko so it is shared by both Linux modules and all drivers receive both 32 and 64 bit ioctl calls with one registration. These ioctl handlers normally forward the call to the FreeBSD ioctl handler which can handle both 32 and 64 bit.
Keep the special COMPAT_LINUX32 ioctl handlers in linux.ko in a separate list for now and let the ioctl syscall iterate over that list first. Later, COMPAT_LINUX32 support can be added to the 64 bit ioctl handlers via a runtime check for ILP32 like is done for COMPAT_FREEBSD32 and then this separate list would disappear again. That is a much bigger effort however and this commit is meant to be MFCable.
This enables linux64 support in x11/nvidia-driver*.
PR: 206711 Reviewed by: kib MFC after: 3 days
show more ...
|
| #
d5e5fed1
|
| 31-Dec-2025 |
Alex S <iwtcex@gmail.com> |
linux: add hidraw ioctl handler
First step towards getting the Linux version of SDL with HIDAPI gamepad drivers to work. Not quite complte as SDL expects to find some information in sysfs as well.
linux: add hidraw ioctl handler
First step towards getting the Linux version of SDL with HIDAPI gamepad drivers to work. Not quite complte as SDL expects to find some information in sysfs as well.
Signed-off-by: Alex S <iwtcex@gmail.com> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1938
show more ...
|
| #
85bf3288
|
| 06-Jan-2026 |
mothcompute <mothcompute@protonmail.com> |
linux: support termios2 ioctls
Signed-off-by: mothcompute <mothcompute@protonmail.com> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1949
|