Go to the source code of this file.
Function Documentation
The explain_is_efault_pointer function may be used to determine whether or not a pointer is valid. Typically this is used when handling ambiguous EFAULT situations.
- Parameters:
-
data | Pointer to the base address of the memory to be checked. |
data_size | The size in bytes of the memory to be checked (i.e. you can use sizeof(*data) in most situations). |
- Returns:
- int; 1 if the pointer is bad (points outside the process address space), or 0 if the pointer is OK.
Definition at line 29 of file pointer.c.