Re: Change mode to kernel?

H. Peter Anvin (
19 May 1998 21:11:45 GMT

Followup to: <>
By author: Jeff Noxon <>
In newsgroup:
> Is it possible for user code to change to kernel mode and back? Or is
> that something that only VMS can do? :)
> I want to write a simple device driver that doesn't require IRQs or DMAs,
> and I'd rather not do the dirty part as a kernel module. Certain I/O
> operations need to be atomic to avoid races with other code tweaking the
> same hardware. I understand (possibly incorrectly) that it isn't safe
> (or possible) to disable IRQs in userland...
> What's the best approach?

Doing the dirty part as a kernel module.


    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See for web page and full PGP public key
        I am Bahá'í -- ask me about it or see
   "To love another person is to see the face of God." -- Les Misérables

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to