The HyperNews Linux KHG Discussion Pages

## Examples code as documentation

  Forum: The Linux Kernel Hackers' Guide
  Re: proc fs docs? (David Woodruff)
  Keywords: proc
  Date: Sun, 07 Dec 1997 02:43:13 GMT
  From: Jeremy Impson <jdimpson@syr.edu>

I know this question was asked over two years ago, but I have a partial answer... At http://web.syr.edu/~jdimpson/proj/fib-0.1.tgz you can get the source code to a loadable module that creates a file called /proc/fib. Writing a number to it will seed it, reading from it will read the the fibonacci value of that seed. I wrote it as an exercise in understanding how to read and write to /proc files. Reade http://web.syr.edu/~jdimpson/proj/fib-0.1/README for more details. --Jeremy