Find the answer to your Linux question:
Results 1 to 2 of 2
Hey everyone, I need to open /proc/1/status file within linux kernal module and read from that file. Is it possible? Can I use functions open() and read()? Can anyone help ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    1

    How to open /proc files in Linux Kernal module and write into file within kernal modu


    Hey everyone,

    I need to open /proc/1/status file within linux kernal module and read from
    that file.
    Is it possible? Can I use functions open() and read()?
    Can anyone help me?

    Thank You

  2. #2
    Linux User fernape's Avatar
    Join Date
    Dec 2005
    Location
    Holland
    Posts
    301
    I need to open /proc/1/status file within linux kernal module and read from
    that file.
    Why from inside the kernel?

    Is it possible? Can I use functions open() and read()?
    No, you can not use standar library functions,

    Read this first

    http://www.linuxforums.org/programmi...ng_part_i.html
    and this:
    http://www.linuxforums.org/programmi...g_part_ii.html

    Best Regards

Posting Permissions

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