1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/sys/compat
Alexander Leidinger 529844c77c Linux' shm_open() fails because it wants to find some funky shmfs
to construct the full pathname. It starts to search at the default
mountpoint which is /dev/shm. If this fails it runs through fstab
and searches for shmfs and tmpfs. Whatever it finds will be
statfs()'ed to be checked for Linux' fs magic for shmfs (0x01021994).

Ideally our tmpfs should deliver this fs magic to Linux processes, but
as our tmpfs is considered to be an experimental feature we can not
assume that there is always a tmpfs available.

To make shared memory work in the Linuxulator, force the fs type of
/dev/shm (which can be a symlink) to match what Linux expects. The user
is responsible (info has to be added to the linux base ports and the docs)
to setup a suitable link for /dev/shm.

Noticed by:	Andre Albsmeier <Andre.Albsmeier@siemens.com>
Submitted by:	Andre Albsmeier <Andre.Albsmeier@siemens.com>
MFC after:	1 month
2011-02-09 20:23:22 +00:00
..
freebsd32 Create shared (readonly) page. Each ABI may specify the use of page by 2011-01-08 16:13:44 +00:00
ia32 Create shared (readonly) page. Each ABI may specify the use of page by 2011-01-08 16:13:44 +00:00
linprocfs Update interface stats counters to match the current format in linux and 2011-01-31 00:09:52 +00:00
linsysfs Remove no-op assignment. 2010-11-15 23:14:14 +00:00
linux Linux' shm_open() fails because it wants to find some funky shmfs 2011-02-09 20:23:22 +00:00
ndis Fix a few more SYSCTL_PROC() that were missing a CTLFLAG type specifier. 2011-01-19 00:57:58 +00:00
netbsd
svr4 Add macro DECLARE_MODULE_TIED to denote a module as requiring the 2010-10-12 09:18:17 +00:00
x86bios Prefer pmap_unmapbios() over pmap_unmapdev(). The binary does not change 2010-10-05 18:38:23 +00:00