Subject: Re: selecting processes with a given emul?
To: Emmanuel Dreyfus <manu@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: tech-kern
Date: 06/04/2002 01:34:11
No, it's generally preferable to resturcture code so that
this isn't necessary. I hope this strcmp() would be in
compat code, right? From within compat code, you _can_ reference
it's own struct emul.

Jaromir

Emmanuel Dreyfus wrote:
> > p->p_emul has lots of info for you to examine to make sure you have
> > the right type of binary.  You should be able to examine that and
> > then safely dereference p_emuldata.
> 
> Is a strncmp on p->p_emul->e_name considered a good practice?
> 
> -- 
> Emmanuel Dreyfus
> - Quel est le meilleur moyen d'accelerer un PC?
> - 9,81 m/s^2
> manu@netbsd.org
> 


-- 
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.org/Ports/i386/ps2.html
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-