Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all, I have a requirement, to read the complete proc filesystem from the linux pc.. Does linux provide some functions to read the proc filesystem means the directories and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    85

    Red face C library or some functions to read Proc filesystem


    Hi all, I have a requirement, to read the complete proc filesystem from the linux pc.. Does linux provide some functions to read the proc filesystem means the directories and files present in the filesystem.. in short I want to create a treeview of proc filesystem. and if a user selects the file in the proc.. I should show the contents in the respective file.
    So I want some library or functions to read the proc filesystem..

    thanks in advance.

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    proc filesystem is just a directory with files in it, you should be able to use any library that can handle a filesystem for proc especially when considering read only access

    the only api to my knowledge surrounding proc is kernel level, if that is what you want, check out Basic proc file system module Briefbox

Posting Permissions

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