Disabling interrupts in user space (Linux)

797 views
Skip to first unread message

Josef

unread,
Nov 4, 2011, 5:27:30 AM11/4/11
to pandaboard
Hi,

I am wondering, if there is a way of disabling (maskable) interrupts
on Linux (v3.1) in user space. The following inline assembly code is
ignored when it is executed:

asm volatile ("cpsid if" : : : "memory", "cc");

Doing the same in a kernel module seems to work.

Thanks,
Josef

Perry Hung

unread,
Nov 21, 2011, 1:34:58 PM11/21/11
to pandaboard
Can't be done in userspace.

Allowing this would allow any userspace program to completely bring
down the machine!

Reply all
Reply to author
Forward
0 new messages