Skip site navigation (1)Skip section navigation (2)
Date:      Thu,  4 Feb 1999 19:50:34 -0600 (CST)
From:      Tony Kimball <alk@pobox.com>
To:        emulation@FreeBSD.ORG
Subject:   linux.8
Message-ID:  <14010.20051.565140.790121@avalon.east>
References:  <14009.18708.573160.241150@avalon.east> <199902040747.SAA00549@atdot.dotat.org>

next in thread | previous in thread | raw e-mail | index | archive | help

Here's my attempt to explain linux-space.  Please correct/expand/comment.

.\"
.\" Copyright (c) 1997
.\" The FreeBSD Project.  All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\" $Id: linux.8,v 1.3 1997/02/22 12:48:26 peter Exp $
.\"
.Dd January 9, 1997
.Dt LINUX 8
.Os FreeBSD
.Sh NAME
.Nm linux
.Nd load the Linux emulator kernel module
.Sh SYNOPSIS
.Nm linux
.Sh DESCRIPTION
The
.Nm
utility loads the Linux emulator kernel module.
.Pp
The Linux emulator kernel module enables the execution of ELF
executables of the binary type "Linux" and employing Linux system call
semantics.  The filesystem view provided to such executables differs
from that provided to native FreeBSD executables, whether a.out, elf
(unbranded), or elf (branded "FreeBSD").  

When a Linux ABI executable attempts to change to a directory relative
to / which exits relative to /compat/linux (or the directory to which
/compat/linux is linked, if it is a soft link), the version under
/compat/linux becomes the current working directory.  The directories,
mounts, or links intervening between / and /compat/linux are not part
of the current path, so that changing directories to .. from the Linux
instance of /usr, namely /compat/linux/usr, changes directories to /,
and not to /compat/linux.  

Attempting to 
.Xr exec 2
a file follows
similar rules of shadowing, with the contents of
/compat/linux/usr/bin, for example, superceding the contents of
/usr/bin.
.Xr open 2
and 
.Xr getdirentries 2
do not, however, perform such shadowing.

.Sh FILES
.Bl -tag -width /lkm/linux_mod.o 
.It Pa /lkm/linux_mod.o
Linux emulator loadable kernel module.
.Sh SEE ALSO
.Xr lkm 4 ,
.Xr modload 8 ,
.Xr brandelf 1


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14010.20051.565140.790121>