Re: [Netnice-kernels] NNFS was: Re: Sourceforge Account
Status: Alpha
Brought to you by:
taost6
From: Scott B. <sco...@ve...> - 2004-09-28 21:37:13
|
Hi Takashi, On Tue, 28 Sep 2004, Takashi Okumura wrote: > hi scott, > > i still don't understand your question. but, i think it is a good > idea to try our bootable CD to know how it works. this is definitely > a better specification of the API, better than the simplified description > of the page you mentioned. Thanks for the pointer, I had not actually run netnice. Now, I have downloaded the ISO and run it excersizing netnice by doing telnet localhost and examining in /proc/network and /proc/<pid>/sockets/. Before I was working from the docs and from the FreeBSD5 source. > but, i don't think it is a right way, to create a file system which > contains just the directories under /proc/network of FreeBSD and > mount it under /proc/network of linux-procfs. we need to setup a lot > of links between process-dependent directories under /proc/PIDs and > VIF directories under /proc/network, and thus, they cannot be separated > that way, i believe. Considering further and with your reply, I can see the point. The code that implements the interaction between the /proc/<pid>/sockets entries and the vif interfaces under /proc/network/<interface>/<vif> needs to be in the same kernel module. I was originally thinking that /proc/<pid>/sockets could be created dynamically from within the nnfs kernel module (I think linux procfs may have this feature) but it would probably be difficult and error prone. I think the linux /proc/<pid> implementation is mostly contained in the functions at the end of the file linux/fs/proc/base.c - proc_pid_readdir, and proc_task_readdir. I will need to investigate further but at this point does not look too complex to extract and port to nnfs. > i guess that the confusion is mostly coming from the difference of > organizations between FreeBSD-procfs and linux-procfs. and, maybe > it is a good idea to have a tele-conference to avoid further confusion. > we have a polycom system in my department, and i use MSN messenger > also (ta...@ho...). > I would prefer a teleconference to IM initially. For efficiency I would suggest we try next week maybe Wednesday or Thursday as I will be out of town this weekend and I want to study study up on the system some more. As it is, I was about ready to move into implementing the mkdir operation on the virtual directories under /network. I am studying the functions vif_alloc and nnfs_vncache_alloc as I think these are the most important here, I am thinking they should port with few changes. Thanks, Scott Brumbaugh |