Get the memory of @mem that can be accessed according to the mode specified in @flags. The function should return a pointer that contains at least @maxsize bytes.
a pointer to memory of which at least @maxsize bytes can be accessed according to the access pattern in @flags.
See Implementation
Get the memory of @mem that can be accessed according to the mode specified in @flags. The function should return a pointer that contains at least @maxsize bytes.