[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] GlueSTiK and mem protection


> allocated with kmalloc() ?  After talking with Frank about
> kernal memeory allocation this is why my client dies.
> I traced the crash in my client right up to where it calls
> cngetinfo() which indeed returns a pointer, but into some
> block that is kernal ram?  As soon as my client attempts to
> fetch the local port from this pointer I have trouble.
> Am I wrong here?

You are right. Gluestik must allocate such memory in user area. For this 
exist a special routine in the module interface: umalloc - allocate a 
block in user area, private to this program, automatically freed on 
process termination.


Internet: fnaumann@cs.uni-magdeburg.de
Mausnet:  Frank Naumann @ L2