[SSI-devel] Re: [PATCH][2.6] af_unix.c
Brought to you by:
brucewalker,
rogertsang
From: Brian J. W. <Bri...@hp...> - 2004-11-05 06:49:18
|
Krishnakumar. R wrote: > Hi Brian, > > Here is the patch for using the new parameters for the > ssi_unix_stream_sendmsg. The fix seems to be trivial. > Hence doubt whether it is proper. Your instinct is correct. The real challenge is to package up the kiocb argument to unix_stream_connect(), send it to the listening socket's node, completely reconstruct the kiocb structure on that node (at least well enough to work correctly), and call unix_stream_connect() with it (and the other args). > I had the following queries also: > > ssi_unix_stream_sendmsg defined in include/cluster/ssi/unix.h > calls rmtunix_stream_connect which inturn calls RMTUNIXSVR_STREAM_CONNECT. > Now this RMTUNIXSVR_STREAM_CONNECT does not seems > to be defined anywhere in the ssi cvs code. > Am I missing something ? RMTUNIXSVR_STREAM_CONNECT() is a generated function that: 1. encodes the data into a RPC (remote procedure call) 2. calls the necessary ICS routines to send it to the other node 3. decodes the data over there 4. calls rmtunixsvr_stream_connect() (notice it's the same name with small caps) 5. encodes the return value and any parameters marked as 'OUT' in the rmtunixsvr_stream_connect definition in cluster/ssi/ipc/unixnm.svc 6. decodes the data on the original node and returns it to the caller To generate it (and all other generated functions): 1. Copy openssi/kernel.configs/kernel-ssi-2.6.8.1-i686-smp.config into .config 2. Run `make oldconfig' 3. Run `make prepare-all' You'll find the generated files in include/cluster/gen. Good luck, Brian |