Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jan 2007 23:18:37 +0000 (GMT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Cc:        Kurt Jaeger <lists@c0mplx.org>, freebsd-current@freebsd.org
Subject:   Re: CFT/HEADS-UP: linux 2.6.16 emulation
Message-ID:  <20070122231754.A17361@fledge.watson.org>
In-Reply-To: <20070122213039.GA51752@stud.fit.vutbr.cz>
References:  <20070120170723.34c223fb@Magellan.Leidinger.net> <20070122184807.GA26839@home.c0mplx.org> <20070122213039.GA51752@stud.fit.vutbr.cz>

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

> On Mon, Jan 22, 2007 at 07:48:07PM +0100, Kurt Jaeger wrote:
>> Hi!
>>
>> Alex Leidinger wrote:
>>> If you use a linux program, please add compat.linux.osrelease=2.6.16 to 
>>> /etc/sysctl.conf (my desktop is running with 2.6.16 emulation since some 
>>> days already). After the next boot (or after running "sysctl 
>>> compat.linux.osrelease=2.6.16", please make sure no linux program is 
>>> running already) any linux program will start with a linux kernel version 
>>> of 2.6.16 instead of 2.4.2.
>>
>> Is it possible to provide a program that lists the processes running under 
>> linux emu ?
>
> I dont think so... the distinguishing in kernel is done by comparing 
> p->p_sysent. but its usually very easy to say what is a linux program
>
> just try to kldunload linux module and if that doesnt succeed look at your 
> ps ax output for suspicous programs (acroread, skype etc.)

This might well be something useful to add though -- an ABI name exported via 
kinfo_proc or such.  It would also be useful for telling whether processes are 
32-bit or 64-bit native processes, etc.

Robert N M Watson
Computer Laboratory
University of Cambridge



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