<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/compat/linux/linux_common.h, branch release/13.2.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-02-27T18:16:00Z</updated>
<entry>
<title>linux(4): Consolidate a FreeBSD interface names translation code</title>
<updated>2023-02-27T18:16:00Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2023-02-23T08:00:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=aeed04a32e459f2b7e0f78ca00ba257d7ac18123'/>
<id>urn:sha1:aeed04a32e459f2b7e0f78ca00ba257d7ac18123</id>
<content type='text'>
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.

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

(cherry picked from commit 3ab3c9c29cf0e5df8dbbaaf2003456445534bad8)
(cherry picked from commit a83551a52d1cfa8a756ef8dd298cab8042e27437)
</content>
</entry>
<entry>
<title>linux(4): Cleanup empty lines.</title>
<updated>2022-06-17T19:33:48Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2022-03-31T18:23:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ac33f043f65437acbb5f868fafc412787b8df60a'/>
<id>urn:sha1:ac33f043f65437acbb5f868fafc412787b8df60a</id>
<content type='text'>
MFC after:		2 weeks

(cherry picked from commit 09d60bfae58f10a24c8fc7c06bd3d90b86d40e07)
</content>
</entry>
<entry>
<title>Drop "All rights reserved" from my copyright statements.</title>
<updated>2022-06-17T19:33:09Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2021-07-20T07:05:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2e084b4b54cbaeb8fe1e6f7dd778bb79f12f0b4c'/>
<id>urn:sha1:2e084b4b54cbaeb8fe1e6f7dd778bb79f12f0b4c</id>
<content type='text'>
Add email and fixup years while here.

Reviewed by:		imp
Differential Revision:	https://reviews.freebsd.org/D30912
MFC after:		2 weeks

(cherry picked from commit 1ca6b15bbdcebd6a0726dae2e9b72f383139d16c)
</content>
</entry>
<entry>
<title>linux(4): Rework Linux ppoll system call.</title>
<updated>2022-06-17T19:30:19Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2021-06-22T05:06:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b2deba043c0ce5e89db934ff81dad753535eafa8'/>
<id>urn:sha1:b2deba043c0ce5e89db934ff81dad753535eafa8</id>
<content type='text'>
For now the Linux emulation layer uses in kernel ppoll(2) without
conversion of user supplied fd 'events', and does not convert the
kernel supplied fd 'revents'.

At least POLLRDHUP is handled by FreeBSD differently than by
Linux. Seems that Linux silencly ignores POLLRDHUP on non socket fd's
unlike FreeBSD, which does more strictly check and fails.

Rework the Linux ppoll, using kern_poll and converting 'events'
and 'revents' values.
While here, move poll events defines to the MI part of code as they
mostly identical on all arches except arm.

Differential Revision:	https://reviews.freebsd.org/D30716
MFC after:		2 weeks

(cherry picked from commit 26795a0378b58c3e26b68577a4cc446ab527e8b5)
</content>
</entry>
<entry>
<title>Our bsd_to_linux_sockaddr() and linux_to_bsd_sockaddr() functions</title>
<updated>2019-05-13T17:48:16Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2019-05-13T17:48:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d5368bf3dff2b4627e2d69cce5c5dd98428fdaba'/>
<id>urn:sha1:d5368bf3dff2b4627e2d69cce5c5dd98428fdaba</id>
<content type='text'>
alter the userspace sockaddr to convert the format between linux and BSD versions.
That's the minimum 3 of copyin/copyout operations for one syscall.

Also some syscall uses linux_sa_put() and linux_getsockaddr() when load
sockaddr to userspace or from userspace accordingly.

To avoid this chaos, especially converting sockaddr in the userspace,
rewrite these 4 functions to convert sockaddr only in kernel and leave
only 2 of this functions.

Also in order to reduce duplication between MD parts of the Linuxulator put
struct sockaddr conversion functions that are MI out into linux_common module.

PR:		232920
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D20157
</content>
</entry>
<entry>
<title>In order to reduce duplication between MD parts of the Linuxulator</title>
<updated>2019-05-03T08:42:49Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2019-05-03T08:42:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d151344dbff98b00c52437f953183853064c4783'/>
<id>urn:sha1:d151344dbff98b00c52437f953183853064c4783</id>
<content type='text'>
move bits that are MI out into the headers in compat/linux.
For that remove bogus _packed attribute from struct l_sockaddr
and use MI types for struct members.

And continue to move into the linux_common module a code that is
intended for both Linuxulator modules (both instruction set - 32 &amp; 64 bit)
or for external modules like linsysfs or linprocfs.

To avoid header pollution introduce new sys/compat/linux_common.h header.

Reviewed by:	emaste
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D20137
</content>
</entry>
</feed>
