/net in Linux: project log

A Glendix project

Initial reading and analysis

Week 1:

The plan is to create a virtual filesystem that hooks on to the TCP/IP stack and exposes it to user-space as a /net filesystem just like Plan 9 From Bell Labs does. I looked at debugfs as a sample virtual fs implementation. They all use libfs which is a library in Linux provided by the kernel that does most of the redundant boilerplate code required to get the kernel to identify the filesystem.

From initial reading, it seems like there is an API that lets me describe the name of the module, and implement functions like create_file, create_dir, write_file and read_file. These functions get called when we use any shell script or any other user-space program to manipulate the filestructure.

I have managed to get a reference book, which contains all the implementation details of Socket and TCP/IP stack of Linux. I have access to many other Plan 9 documentation from over the years.

More reading to follow in subsequent weeks…

January 28, 2009 Posted by | Glendix, libfs, Linux kernel, TCP/IP, vfs | Leave a Comment

   

Follow

Get every new post delivered to your Inbox.