[openbeos] openbeos] Re: memset ---> user_memset ?

  • From: Philippe Houdoin <philippe.houdoin@xxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Thu, 07 Sep 2006 16:21:32 +0200

Axel wrote:
> The user_*() versions have to be used whenever you're accessing unsafe
> user memory. In BeOS, the memory you get in read/write/etc. hooks is
> already safe - but the one that got passed into ioctl() never was. Be
> never published how to make memory safe, so you can use the user_*()
> functions to access it.

Does it means that in Haiku drivers we've to use user_*() to access user memory
*only* for ioctl(), not for read/write?

And do we have for backward source compatibility something along:

#define user_memcpy memcpy

to ease compiling Haiku drivers for R5 target?

- Philippe

Other related posts: