Leslie Donaldson wrote:
> I need a block of memory that can notify me or even a flag set when
> it has been written to. I was thinking of letting the user code generate
> some sort of page fault... Any random thoughts would be greatly
> appreciated.
Look for the Boehm garbage collector. It has c
> mprotect the page(s) you are interested in so you can't write to them
> and catch SEGV -- when someone attempts to write you can pull apart
> the stack frame mark the page(s) RO and continue.
>
> if you are really stuck i think i have example code to do this
> somewhere for ia32 (stack frame i
Hello,
I realise this may be a little off topic but I think the kernel is the
only
place I will be able to pull this stunt.
I need a block of memory that can notify me or even a flag set when
it has been written to. I was thinking of letting the user code generate
some sort of page fault... Any
3 matches
Mail list logo