Find the answer to your Linux question:
Results 1 to 2 of 2
How to access the user space variable in kernel space, I need to do this because if any Driver fails in module initialization i will write the status in this ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    5

    How to access the User Space Variable in Kernel


    How to access the user space variable in kernel space, I need to do this because if any Driver fails in module initialization i will write the status in this user space variable. So whenever i read this variable in user space, then it should have hardware's Driver Module Status(Success or Failure)

  2. #2
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    You can return a value when the module in initialized...

    int init_module()
    {
    return success of failure;
    }
    Make mine Arch Linux

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •