Re: Change mode to kernel?

H. Peter Anvin (hpa@transmeta.com)
19 May 1998 21:11:45 GMT


Followup to: <19980519111908.A20937@planetfall.com>
By author: Jeff Noxon <jeff@planetfall.com>
In newsgroup: linux.dev.kernel
>
> 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.

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "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 majordomo@vger.rutgers.edu