Andrew Sherk
|
InterruptDetach and EPERM
|
Andrew Sherk
07/23/2009 4:31 PM
post34464
|
InterruptDetach and EPERM
Hi,
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?
From errno.h,
#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
test program.
_NTO_INTR_FLAGS_TRK_MSK | _NTO_INTR_FLAGS_END | _NTO_INTR_FLAGS_PROCESS are passed to InterruptAttach by the first
process.
thanks,
asherk
|
|
|