Subject: Re: Fixing Linux emulated brk()
To: Emmanuel Dreyfus <p99dreyf@criens.u-psud.fr>
From: Jaromír <jdolecek@netbsd.org>
List: tech-kern
Date: 03/15/2001 09:30:55
Emmanuel Dreyfus wrote:
> If I use p_emuldata: this is a char*,

Actually, it's void * :)

> how should I use it? Should I
> define a struct linux_emuldata and store a pointer on it there? 

Yep. See linux_e_proc_exec(), linux_e_proc_fork(), linux_e_proc_exit()
and comments in kern_exec.c, kern_fork.c, kern_exit.c regarding
e_proc_{exec|fork|exit} from p_emul, if you need to setup anything
at the appropriate time.

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>      http://www.ics.muni.cz/~dolecek/
 ***  Wanna a real operating system ? Go and get NetBSD, dammit!  ***