5

I would like to create a pseudo filesystem like /proc to access an applications configuration.

How could i achieve this or where could i find some introductory documentation about it?

Scooter
  • 6,802
  • 8
  • 41
  • 64
matthias krull
  • 4,389
  • 3
  • 34
  • 54

2 Answers2

18

The easiest way is to use FUSE. This is particularly easy with high-level language bindings, such as fuse-python.

Marcelo Cantos
  • 181,030
  • 38
  • 327
  • 365
  • cause of the lack of a suitable fuse abstraction i wrote my own c-library. if one needs to use its own proc like filesystem have a look at https://github.com/VRciF/procfuse and the documentation https://github.com/VRciF/procfuse/wiki/ProcFuse-Documentation - hth – John Doe Jul 11 '13 at 12:39
4

Perhaps you want to have a look at sysfs

Daniel Băluţă
  • 1,255
  • 11
  • 13
  • I thought that sysfs was for accessing kernel data, and wasn't suitable for applications which presumably live in user space. – Dipstick Jun 15 '10 at 12:56
  • the same thing happens with /proc filesystem. It is designed to export to user space applications kernel internal information. – Daniel Băluţă Jun 15 '10 at 13:18
  • 1
    Strange, I guess I'm not reading the question correctly. It seems like the OP wants to access configuration data for a running user space application, not a kernel thread. – Tim Post Jun 15 '10 at 14:51