]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In order to reduce duplication between MD parts of the Linuxulator
authordchagin <dchagin@FreeBSD.org>
Fri, 3 May 2019 08:42:49 +0000 (08:42 +0000)
committerdchagin <dchagin@FreeBSD.org>
Fri, 3 May 2019 08:42:49 +0000 (08:42 +0000)
commit90cdaa0665b339584f85be1ce3b5a4ae4db3a185
tree90778ba0e23fb6532654eab1fc4495674c640f4b
parent88a2bb70029b4927fa2432bb4e833ebdf6a78112
In order to reduce duplication between MD parts of the Linuxulator
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 & 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
sys/amd64/linux/linux.h
sys/amd64/linux32/linux.h
sys/arm64/linux/linux.h
sys/compat/linux/linux.c
sys/compat/linux/linux.h
sys/compat/linux/linux_common.h [new file with mode: 0644]
sys/compat/linux/linux_ioctl.c
sys/i386/linux/linux.h