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?
3.1. Under Linux, all data are stored as files. Most users are familiar with the two primary types of files: text and binary. But the /proc/ directory contains another type of file called a virtual file. It is for this reason that /proc/ is often referred to as a virtual file system.
As such, /proc is an example of a virtual file system. Most virtual files are listed as zero bytes in size, but they contain a large amount of information when viewed. Virtual files such as /proc/interrupts , /proc/meminfo , /proc/mounts , and /proc/partitions provide a view of the system's hardware.
The proc file system is sometimes referred to as a process information pseudo-file system. It does not contain ``real'' files but rather runtime system information (e.g. system memory, devices mounted, hardware configuration, etc). For this reason it can be regarded as a control and information center for the kernel.
The easiest way is to use FUSE. This is particularly easy with high-level language bindings, such as fuse-python.
Perhaps you want to have a look at sysfs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With