07/23/2009 4:31 PM
InterruptDetach and EPERM
I have a test program that takes the interrupt id returned from another process' InterruptAttach and tries
InterruptDetach with it.
EPERM is returned by InterruptDetach.
In the docs,
"EPERM The process doesn't have superuser capabilities. "
Can I use an InterruptDetach from a different process? It is allowed?
If it is not allowed, should the docs note this other reason for an EPERM?
#define EPERM 1 /* Not owner */
ThreadCtl(_NTO_TCTL_IO, 0) returns ok and I can successfully InterruptMask and InterruptUnmask with this same id in my
_NTO_INTR_FLAGS_TRK_MSK | _NTO_INTR_FLAGS_END | _NTO_INTR_FLAGS_PROCESS are passed to InterruptAttach by the first