lkml.org 
[lkml]   [2005]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: is rpc_call blocking and wait for reponse before returning to the caller?
From
Date
to den 27.10.2005 klokka 12:45 (-0400) skreiv Xin Zhao:
> I am trying to implement a mechanism similar to rpc. So I might want
> to know whether rpc_call return only after it receive response from
> the server.

In newer kernels rpc_call is just a wrapper to rpc_call_sync() which is
the synchronous RPC call interface. That will always wait for a response
from the server before returning if the clnt->cl_soft flag is not set.

For asynchronous operation, there is rpc_call_async().

Cheers,
Trond

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-10-27 19:05    [W:0.305 / U:1.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site