kernel/user mode

This is a discussion on kernel/user mode within the Linux Programming forums, part of the Platform Specific Boards category; can any one please let me know the difference between a module running in kernel mode and the normal user ...

  1. #1
    Registered User rohit's Avatar
    Join Date
    Feb 2002
    Posts
    69

    Question kernel/user mode

    can any one please let me know the difference between a module running in kernel mode and the normal user mode.

    what and what can not be achieved if we run the program/module in kernel/normal mode(s)

    best regards
    rohit

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    202
    Refferencing Linux Device Druvers (Rubini & Corbet, Oreilly, 2001) page 45:

    The advantages of user-space drivers can be surmised as follows:

    * The full C Library can be linked in. the driver can perform many exotic tasks without resorting to other programs...

    * The programmer can run a conventional debugger on the driver code without having to go through the contortions to debug a running kernel.

    * If a user-space driver hangs, you can simply kill it...

    *User memory is swappable, unlike kernel memory...

    *A well-designed driver program can still allow concurrent access to the device.
    Hope this helps,

    starX
    www.axisoftime.com

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  2. Shortening main
    By pdstatha in forum C Programming
    Replies: 1
    Last Post: 04-03-2002, 04:56 PM
  3. Showing the directory sturcture
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 03-26-2002, 04:46 PM
  4. Implementing "ls -al"
    By pdstatha in forum Linux Programming
    Replies: 11
    Last Post: 03-20-2002, 04:39 AM
  5. free() usage
    By pdstatha in forum C Programming
    Replies: 5
    Last Post: 03-13-2002, 09:28 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21