[ros-kernel] Handling of user mode exceptions in ros
Thomas Weidenmueller
thomas at reactsoft.com
Sat Apr 17 15:53:34 CEST 2004
Anich Gregor wrote:
> I was looking at a function which Royce has written... it works like this:
>
>1) Does a syscall to the "real" function which tells how much memory it needs
>2) Allocates that memory
>3) Does the same syscall, this time passing in the buffer which in turn is
>filled by the function.
>4) Calls the callback
>5) Frees that memory
>
>I think this is a good way to do it (what do you think? :)
>
>
yes we're wrinting functions this way if possible. But this way is not
possible in every circumstance, e.g. SendMessage() requires callbacks to
usermode in certain cases.
Regards
Thomas
More information about the Ros-kernel
mailing list