Re: CFT/HEADS-UP: linux 2.6.16 emulation

From: Robert Watson <rwatson_at_FreeBSD.org>
Date: Mon, 22 Jan 2007 23:18:37 +0000 (GMT)
> 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
Received on Mon Jan 22 2007 - 22:18:38 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:05 UTC