|
How can a process know if it has access to a given io address range?
My problem is that I want a non-root process to know if it has the right to access a given io address range before actually accessing it. If it does not have this right, a segmentation fault is generated and the program is terminated. I want to handle this case gracefully with an error message but no program termination.
Is there a kernel function to know this? Or, could I trap the segmentation fault?
|