Send a file to a process by writing to /proc

I’d like a way to “write” to a Linux filesystem, but rather than write the file, have the file sent to a process (so that it can be sent to another server over the network). I think this is possible with a kernel module by writing to /proc/mykernelmodule/filetosend, but I don’t know of any good resources that teach this. Any ideas?

Edit: This seems like a pretty good resource (haven’t started hacking on it yet): http://tldp.org/LDP/lkmpg/2.6/html/x810.html.