Subject: selecting processes with a given emul?
To: None <tech-kern@netbsd.org>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: tech-kern
Date: 06/02/2002 22:44:47
Hi all
How should I find the processes running a given emulation? Comparing
p->p_emul to the address of the emul structure is not LKM friendly, is
there another solution?
I need this because I have to walk the process list and use some
p->p_emuldata. Not checking the process' emulation before accessing
p->p_emuldata is likely to cause a crash.
--
Emmanuel Dreyfus
- Quel est le meilleur moyen d'accelerer un PC?
- 9,81 m/s^2
manu@netbsd.org