freebsd-skq/sys/compat/linux
kib e75ba1d5c4 Commit the 64-bit inode project.
Extend the ino_t, dev_t, nlink_t types to 64-bit ints.  Modify
struct dirent layout to add d_off, increase the size of d_fileno
to 64-bits, increase the size of d_namlen to 16-bits, and change
the required alignment.  Increase struct statfs f_mntfromname[] and
f_mntonname[] array length MNAMELEN to 1024.

ABI breakage is mitigated by providing compatibility using versioned
symbols, ingenious use of the existing padding in structures, and
by employing other tricks.  Unfortunately, not everything can be
fixed, especially outside the base system.  For instance, third-party
APIs which pass struct stat around are broken in backward and
forward incompatible ways.

Kinfo sysctl MIBs ABI is changed in backward-compatible way, but
there is no general mechanism to handle other sysctl MIBS which
return structures where the layout has changed. It was considered
that the breakage is either in the management interfaces, where we
usually allow ABI slip, or is not important.

Struct xvnode changed layout, no compat shims are provided.

For struct xtty, dev_t tty device member was reduced to uint32_t.
It was decided that keeping ABI compat in this case is more useful
than reporting 64-bit dev_t, for the sake of pstat.

Update note: strictly follow the instructions in UPDATING.  Build
and install the new kernel with COMPAT_FREEBSD11 option enabled,
then reboot, and only then install new world.

Credits: The 64-bit inode project, also known as ino64, started life
many years ago as a project by Gleb Kurtsou (gleb).  Kirk McKusick
(mckusick) then picked up and updated the patch, and acted as a
flag-waver.  Feedback, suggestions, and discussions were carried
by Ed Maste (emaste), John Baldwin (jhb), Jilles Tjoelker (jilles),
and Rick Macklem (rmacklem).  Kris Moore (kris) performed an initial
ports investigation followed by an exp-run by Antoine Brodin (antoine).
Essential and all-embracing testing was done by Peter Holm (pho).
The heavy lifting of coordinating all these efforts and bringing the
project to completion were done by Konstantin Belousov (kib).

Sponsored by:	The FreeBSD Foundation (emaste, kib)
Differential revision:	https://reviews.freebsd.org/D10439
2017-05-23 09:29:05 +00:00
..
check_error.d Switch linuxulator to use the native 1:1 threads. 2015-05-24 14:53:16 +00:00
check_internal_locks.d sys/compat/linux*: spelling fixes. 2016-04-30 00:53:10 +00:00
linux_common.c Move FEATURE macros for v4l and v4l2 to the common module. 2015-05-24 16:00:01 +00:00
linux_dtrace.h Fix style issues around existing SDT probes. 2015-12-16 23:39:27 +00:00
linux_emul.c Implement Linux personality() system call mainly due to READ_IMPLIES_EXEC flag. 2016-07-10 08:15:50 +00:00
linux_emul.h Implement Linux personality() system call mainly due to READ_IMPLIES_EXEC flag. 2016-07-10 08:15:50 +00:00
linux_event.c Linux epoll return EEXIST on case when op is EPOLL_CTL_ADD, and the supplied 2017-02-28 19:55:16 +00:00
linux_event.h Implement timerfd family syscalls. 2017-02-26 09:48:18 +00:00
linux_file.c Commit the 64-bit inode project. 2017-05-23 09:29:05 +00:00
linux_file.h Add several fcntl flags. 2015-05-24 16:32:52 +00:00
linux_fork.c Update comments for the MD functions managing contexts for new 2016-06-16 12:05:44 +00:00
linux_futex.c Fix NULL pointer dereference in futex_wake_op() in case when the same 2017-05-01 12:25:37 +00:00
linux_futex.h Switch linuxulator to use the native 1:1 threads. 2015-05-24 14:53:16 +00:00
linux_getcwd.c Where possible we will use M_LINUX malloc(9) type. 2015-05-24 16:14:41 +00:00
linux_ioctl.c Add Evdev ioctl handler to the Linuxulator. 2017-04-23 07:43:50 +00:00
linux_ioctl.h Add Evdev ioctl handler to the Linuxulator. 2017-04-23 07:43:50 +00:00
linux_ipc64.h Reduce code duplication between MD Linux code by moving SYSV IPC 64-bit 2017-03-07 17:07:16 +00:00
linux_ipc.c Prevent ushort values overflow when convert new Linux 64-bit ipc 2017-04-07 05:37:08 +00:00
linux_ipc.h x86_64 Linux do not use multiplexing on ipc system calls. 2015-05-24 15:44:41 +00:00
linux_mib.c osd(9): Change array pointer to array pointer type from void* 2016-04-26 19:57:35 +00:00
linux_mib.h Update Linux compat revision to 32. 2015-05-24 16:55:32 +00:00
linux_misc.c Use kern_mincore() helper instead of abusing syscall entry. 2017-03-30 19:45:07 +00:00
linux_misc.h Implement getrandom() syscall. 2017-03-18 18:34:29 +00:00
linux_mmap.c There are some Linux binaries that expect the system to obey the "addr" 2017-02-19 17:17:06 +00:00
linux_mmap.h Fix a copy/paste bug introduced during X86_64 Linuxulator work. 2016-07-10 08:22:04 +00:00
linux_persona.h Implement Linux personality() system call mainly due to READ_IMPLIES_EXEC flag. 2016-07-10 08:15:50 +00:00
linux_signal.c Implement rt_tgsigqueueinfo system call used by glibc for pthread_sigqueue(3). 2017-02-19 07:38:11 +00:00
linux_signal.h Rework signal code to allow using it by other modules, like linprocfs: 2015-05-24 17:47:20 +00:00
linux_socket.c As noted by Roel Bouwman Linux allows a large buffer size than the 2017-03-18 18:31:04 +00:00
linux_socket.h To reduce code duplication move socket defines to the MI path. 2017-03-18 18:23:30 +00:00
linux_stats.c Fix linux_fstatfs() to return proper value for f_frsize. Without it, 2017-02-25 20:32:37 +00:00
linux_sysctl.c Where possible we will use M_LINUX malloc(9) type. 2015-05-24 16:14:41 +00:00
linux_sysproto.h
linux_time.c Map Linux CLOCK_BOOTTIME to native CLOCK_UPTIME. 2017-04-23 07:57:30 +00:00
linux_timer.c Return EINVAL in case of incorrect sigev_signo value specified instead of panicing. 2015-12-26 09:09:49 +00:00
linux_timer.h Use the kern_clock_nanosleep() to implement Linux clock_nanosleep() with 2017-04-02 18:16:00 +00:00
linux_uid16.c Where possible we will use M_LINUX malloc(9) type. 2015-05-24 16:14:41 +00:00
linux_util.c Implement epoll family system calls. This is a tiny wrapper 2015-05-24 16:41:39 +00:00
linux_util.h Add UNIMPLEMENTED() placeholder macro for 2017-03-06 18:11:38 +00:00
linux_vdso.c Fix usage of the same 'i' variable in the external and nested loops. 2017-03-14 18:29:23 +00:00
linux_vdso.h Add 64 bit support to the vdso. 2015-05-24 15:45:36 +00:00
linux_videodev2_compat.h
linux_videodev_compat.h
linux.c Improve debugging output. 2017-02-16 10:36:00 +00:00
linux.h Rework signal code to allow using it by other modules, like linprocfs: 2015-05-24 17:47:20 +00:00
stats_timing.d Switch linuxulator to use the native 1:1 threads. 2015-05-24 14:53:16 +00:00
trace_futexes.d sys/compat/linux*: spelling fixes. 2016-04-30 00:53:10 +00:00