PDA

View Full Version : Creating a Pseudo File System



kelltrick
April 22nd, 2011, 08:50 PM
I'm new to how the pseudo file system works, I apologize in advance if this is a dumb question.

Is there a way I can expose a pseudo file (similar to /proc/stat) that will run a program and get the file contents from the output of that program? More over, can I create my own stat file that will allow other programs to access its information without having to have another program constantly dumping information to a disk? The updates need to be ever few hundred ms, so I'd like to avoid disk IO.

MadCow108
April 22nd, 2011, 10:48 PM
probably fuse is what your looking for:
http://fuse.sourceforge.net/

kelltrick
April 22nd, 2011, 11:59 PM
Cool, Thanks!