History log of /freebsd/sys/compat/linux/linux_ioctl.c (Results 1 – 25 of 487)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 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


Revision tags: release/13.4.0
# ad9cc86b 15-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 ...


Revision tags: release/14.1.0, release/13.3.0
# b9924c20 27-Dec-2023 Mark Johnston <markj@FreeBSD.org>

linux: Check for copyout errors in ioctl handlers

In preparation for annotating copyin() and friends with
__result_use_check.

Reviewed by: dchagin
MFC after: 1 week
Differential Revision: https://r

linux: Check for copyout errors in ioctl handlers

In preparation for annotating copyin() and friends with
__result_use_check.

Reviewed by: dchagin
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D43199

show more ...


Revision tags: release/14.0.0
# 3460fab5 18-Aug-2023 Dmitry Chagin <dchagin@FreeBSD.org>

linux(4): Remove sys/cdefs.h inclusion where it's not needed due to 685dc743


# 5ad5cf50 17-Aug-2023 Alvin Chen <weike.chen_dell.com>

linux(4): Be verbose about unsupported ioctl commands on ifreq ioctl

Differential revision: https://reviews.freebsd.org/D39786
MFC after: 1 month


# 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


# 685dc743 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 0f62290e 18-May-2023 Dmitry Chagin <dchagin@FreeBSD.org>

linux(4): Check fd passed to unlockpt()

In our implementation, grantpt() and unlockpt() don't actually have
any use, because PTY's are created on the fly and already have proper
permissions upon cre

linux(4): Check fd passed to unlockpt()

In our implementation, grantpt() and unlockpt() don't actually have
any use, because PTY's are created on the fly and already have proper
permissions upon creation.
Atleast check that a proper fd passed to unlockpt(). For grantpt()
Glibc calls TIOCGPTN ioctl which would fail if fd is not a master.

Differential Revision: https://reviews.freebsd.org/D40100
MFC after: 1 week

show more ...


# 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 ...


Revision tags: release/13.2.0
# 9883961e 04-Mar-2023 Dmitry Chagin <dchagin@FreeBSD.org>

linux(4): Drop excess assert that Linux IFNAMSIZ is equal to FreeBSD

While here use _Static_assert() instead of the older CTASSERT().


# d447088d 04-Mar-2023 Dmitry Chagin <dchagin@FreeBSD.org>

linux(4): Improve linux_ifconf readability

Initialize max_len and full variables in a code block where
they are used.


# 96a8c6aa 04-Mar-2023 Dmitry Chagin <dchagin@FreeBSD.org>

linux(4): Fixup of the pointer cast when comparing to an integer


# f9b0675b 04-Mar-2023 Dmitry Chagin <dchagin@FreeBSD.org>

linux(4): Refactor socket ioctl path to avoid referencing an unstable interfaces

Split the linux_ioctl_socket() function on two counterparts, where
the linux_ioctl_socket_ifreq() intended to use in

linux(4): Refactor socket ioctl path to avoid referencing an unstable interfaces

Split the linux_ioctl_socket() function on two counterparts, where
the linux_ioctl_socket_ifreq() intended to use in a code path which
requires the struct ifreq manipulation, i.e., translating in/out
values of the struct, while the linux_ioctl_socket() function is left
as is, it calls sys_ioctl() without touching in/out values.

Due to structures ifreq, sockaddr difference between FreeBSD and Linux
the linux_ioctl_socket_ifreq() calls kern_ioctl() directly, converting
in and out values to FreeBSD and to Linux accordingly.

Finally, modify the ifname_linux_to_bsd() to return error code, not
an unstable reference to the interface.

Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D38794

show more ...


# a927409c 04-Mar-2023 Dmitry Chagin <dchagin@FreeBSD.org>

linux(4): Rename struct l_ifreq members names to avoid conflicts with FreeBSD

For now we are using mixed names to access struct ifreq members, some
of Linux (ifr_name, ifr_ifindex), others of FreeBS

linux(4): Rename struct l_ifreq members names to avoid conflicts with FreeBSD

For now we are using mixed names to access struct ifreq members, some
of Linux (ifr_name, ifr_ifindex), others of FreeBSD. To avoid conflicts
switch to use FreeBSD names.

Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D38792

show more ...


# 130383f2 04-Mar-2023 Dmitry Chagin <dchagin@FreeBSD.org>

linux(4): Make linux_ifflags return a value

To simplify the use of the function in the printf-like statements.

Differential Revision: https://reviews.freebsd.org/D38830


# 6c5786fd 04-Mar-2023 Dmitry Chagin <dchagin@FreeBSD.org>

linux(4): Migrate to IfAPI

Migrate linux and linprocfs to use the IfAPI interfaces instead of
direct ifnet accesses.
The code initially writed by jhibbits@, and adapted by me to 3ab3c9c2.

Reviewed

linux(4): Migrate to IfAPI

Migrate linux and linprocfs to use the IfAPI interfaces instead of
direct ifnet accesses.
The code initially writed by jhibbits@, and adapted by me to 3ab3c9c2.

Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D38735

show more ...


# 3ab3c9c2 23-Feb-2023 Dmitry Chagin <dchagin@FreeBSD.org>

linux(4): Consolidate a FreeBSD interface names translation code

We have some amount of interface names translation functions which are
differs by bugs implementation. Consolidates it in a one place

linux(4): Consolidate a FreeBSD interface names translation code

We have some amount of interface names translation functions which are
differs by bugs implementation. Consolidates it in a one place.

Fixup loopback interface names translation and use ifnet methods and
accessors, where possible.

Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D38714
MFC after: 3 days
X-MFC with: 32fdc75fe7

show more ...


# e9e637bf 21-Feb-2023 Justin Hibbits <jhibbits@FreeBSD.org>

Revert "Port Linuxulator to IfAPI"

Revert pending netlink fixes, and further fixes to this.

This reverts commit 52d984831d82d97dc132d0d57fca6ee89572799b.

Requested by: dchagin


# 52d98483 01-Feb-2023 Justin Hibbits <jhibbits@FreeBSD.org>

Port Linuxulator to IfAPI

Reviewed by: dchagin
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D38349


# c8a79231 14-Feb-2023 Dmitry Chagin <dchagin@FreeBSD.org>

linux(4): Rename linux_timer.h to linux_time.h

To avoid confusing people, rename linux_timer.h to linux_time.h,
as linux_timer.c is the implementation of timer syscalls only,
while linux_time.c cont

linux(4): Rename linux_timer.h to linux_time.h

To avoid confusing people, rename linux_timer.h to linux_time.h,
as linux_timer.c is the implementation of timer syscalls only,
while linux_time.c contains implementation of all stuff declared
in linux_time.h.

MFC after: 2 weeks

show more ...


# d8e53d94 14-Feb-2023 Dmitry Chagin <dchagin@FreeBSD.org>

linux(4): Cleanup includes under compat/linux

Cleanup unneeded includes, sort the rest according to style(9).
No functional changes.

MFC after: 2 weeks


# acbbd5c0 14-Feb-2023 Dmitry Chagin <dchagin@FreeBSD.org>

linux(4): Cleanup sys/uio.h where linux_uitl.h is included

MFC after: 2 weeks


# 10d16789 12-Feb-2023 Dmitry Chagin <dchagin@FreeBSD.org>

linux(4): Get rid of the opt_compat.h include.

Since e013e369 COMPAT_LINUX, COMPAT_LINUX32 build options are removed,
so include of opt_compat.h is no more needed.

MFC after: 2 weeks


Revision tags: release/12.4.0, release/13.1.0, release/12.3.0
# 21cc0918 17-Aug-2021 Elliott Mitchell <ehem+freebsd@m5p.com>

sys: Nuke double-semicolons

A distinct number of double-semicolons have ended up in FreeBSD. Take a
pass at getting rid of many of these harmless typos.

Reviewed by: emaste, rrs
Pull Request: http

sys: Nuke double-semicolons

A distinct number of double-semicolons have ended up in FreeBSD. Take a
pass at getting rid of many of these harmless typos.

Reviewed by: emaste, rrs
Pull Request: https://github.com/freebsd/freebsd-src/pull/609
Differential Revision: https://reviews.freebsd.org/D31716

show more ...


# 1f70a85b 08-Jan-2022 Alexander V. Chernikov <melifaro@FreeBSD.org>

linux: add sysctl to pass untranslated interface names

Reviewed by: kib
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D33792


12345678910>>...20