mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-02 03:11:12 +00:00
ad063f6192
Checking virNetClientStreamRaiseError without client lock is racy which is fixed in [1] for example. Thus let's remove such checks when we are sending message to server. And in other cases (like virNetClientStreamRecvHole for example) let's move the check into client stream code. virNetClientStreamRecvPacket already have stream lock so we could introduce another error checking function like virNetClientStreamRaiseErrorLocked but as error is set when both client and stream lock are hold we can remove locking from virNetClientStreamRaiseError because all callers hold either client or stream lock. Also let's split virNetClientStreamRaiseErrorLocked into checking state function and checking message send status function. They are same yet. [1] 1b6a29c21: rpc: fix race on stream abort/finish and server side abort Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com> Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
289 lines
7.2 KiB
Plaintext
289 lines
7.2 KiB
Plaintext
#
|
|
# Private symbols used in RPC operations. Add symbols here, and see
|
|
# Makefile.am for more details.
|
|
#
|
|
# Keep this file sorted by header name, then by symbols with each header.
|
|
#
|
|
|
|
# Generated files
|
|
xdr_*;
|
|
# Hack only required for Win32 to make tests link properly,
|
|
# as the wildcard above doesn't work there. Fortunately
|
|
# Win32 builds don't require the other xdr_* syms exported.
|
|
# since there's no libvirtd built.
|
|
xdr_virNetMessageError;
|
|
|
|
|
|
# rpc/virnetclient.h
|
|
virNetClientAddProgram;
|
|
virNetClientAddStream;
|
|
virNetClientClose;
|
|
virNetClientDupFD;
|
|
virNetClientGetFD;
|
|
virNetClientGetTLSKeySize;
|
|
virNetClientHasPassFD;
|
|
virNetClientIsEncrypted;
|
|
virNetClientIsOpen;
|
|
virNetClientKeepAliveIsSupported;
|
|
virNetClientKeepAliveStart;
|
|
virNetClientKeepAliveStop;
|
|
virNetClientLocalAddrStringSASL;
|
|
virNetClientNewExternal;
|
|
virNetClientNewLibSSH2;
|
|
virNetClientNewSSH;
|
|
virNetClientNewTCP;
|
|
virNetClientNewUNIX;
|
|
virNetClientRegisterAsyncIO;
|
|
virNetClientRegisterKeepAlive;
|
|
virNetClientRemoteAddrStringSASL;
|
|
virNetClientRemoveStream;
|
|
virNetClientSendNonBlock;
|
|
virNetClientSendStream;
|
|
virNetClientSendWithReply;
|
|
virNetClientSetCloseCallback;
|
|
virNetClientSetTLSSession;
|
|
|
|
|
|
# rpc/virnetclientprogram.h
|
|
virNetClientProgramCall;
|
|
virNetClientProgramDispatch;
|
|
virNetClientProgramGetProgram;
|
|
virNetClientProgramGetVersion;
|
|
virNetClientProgramMatches;
|
|
virNetClientProgramNew;
|
|
|
|
|
|
# rpc/virnetclientstream.h
|
|
virNetClientStreamCheckSendStatus;
|
|
virNetClientStreamCheckState;
|
|
virNetClientStreamEOF;
|
|
virNetClientStreamEventAddCallback;
|
|
virNetClientStreamEventRemoveCallback;
|
|
virNetClientStreamEventUpdateCallback;
|
|
virNetClientStreamMatches;
|
|
virNetClientStreamNew;
|
|
virNetClientStreamQueuePacket;
|
|
virNetClientStreamRecvHole;
|
|
virNetClientStreamRecvPacket;
|
|
virNetClientStreamSendHole;
|
|
virNetClientStreamSendPacket;
|
|
virNetClientStreamSetError;
|
|
|
|
|
|
# rpc/virnetdaemon.h
|
|
virNetDaemonAddServer;
|
|
virNetDaemonAddShutdownInhibition;
|
|
virNetDaemonAddSignalHandler;
|
|
virNetDaemonAutoShutdown;
|
|
virNetDaemonClose;
|
|
virNetDaemonGetServer;
|
|
virNetDaemonGetServers;
|
|
virNetDaemonHasClients;
|
|
virNetDaemonHasServer;
|
|
virNetDaemonIsPrivileged;
|
|
virNetDaemonNew;
|
|
virNetDaemonNewPostExecRestart;
|
|
virNetDaemonPreExecRestart;
|
|
virNetDaemonQuit;
|
|
virNetDaemonRemoveShutdownInhibition;
|
|
virNetDaemonRun;
|
|
virNetDaemonUpdateServices;
|
|
|
|
|
|
# rpc/virnetmessage.h
|
|
virNetMessageAddFD;
|
|
virNetMessageClear;
|
|
virNetMessageClearPayload;
|
|
virNetMessageDecodeHeader;
|
|
virNetMessageDecodeLength;
|
|
virNetMessageDecodeNumFDs;
|
|
virNetMessageDecodePayload;
|
|
virNetMessageDupFD;
|
|
virNetMessageEncodeHeader;
|
|
virNetMessageEncodeNumFDs;
|
|
virNetMessageEncodePayload;
|
|
virNetMessageEncodePayloadRaw;
|
|
virNetMessageFree;
|
|
virNetMessageNew;
|
|
virNetMessageQueuePush;
|
|
virNetMessageQueueServe;
|
|
virNetMessageSaveError;
|
|
|
|
|
|
# rpc/virnetserver.h
|
|
virNetServerAddClient;
|
|
virNetServerAddProgram;
|
|
virNetServerAddService;
|
|
virNetServerClose;
|
|
virNetServerGetClient;
|
|
virNetServerGetClients;
|
|
virNetServerGetCurrentClients;
|
|
virNetServerGetCurrentUnauthClients;
|
|
virNetServerGetMaxClients;
|
|
virNetServerGetMaxUnauthClients;
|
|
virNetServerGetName;
|
|
virNetServerGetThreadPoolParameters;
|
|
virNetServerHasClients;
|
|
virNetServerNew;
|
|
virNetServerNewPostExecRestart;
|
|
virNetServerNextClientID;
|
|
virNetServerPreExecRestart;
|
|
virNetServerProcessClients;
|
|
virNetServerSetClientAuthenticated;
|
|
virNetServerSetClientLimits;
|
|
virNetServerSetThreadPoolParameters;
|
|
virNetServerSetTLSContext;
|
|
virNetServerStart;
|
|
virNetServerUpdateServices;
|
|
|
|
|
|
# rpc/virnetserverclient.h
|
|
virNetServerClientAddFilter;
|
|
virNetServerClientClose;
|
|
virNetServerClientCloseLocked;
|
|
virNetServerClientDelayedClose;
|
|
virNetServerClientGetAuth;
|
|
virNetServerClientGetFD;
|
|
virNetServerClientGetID;
|
|
virNetServerClientGetIdentity;
|
|
virNetServerClientGetInfo;
|
|
virNetServerClientGetPrivateData;
|
|
virNetServerClientGetReadonly;
|
|
virNetServerClientGetSELinuxContext;
|
|
virNetServerClientGetTimestamp;
|
|
virNetServerClientGetTLSKeySize;
|
|
virNetServerClientGetTLSSession;
|
|
virNetServerClientGetTransport;
|
|
virNetServerClientGetUNIXIdentity;
|
|
virNetServerClientHasTLSSession;
|
|
virNetServerClientImmediateClose;
|
|
virNetServerClientInit;
|
|
virNetServerClientInitKeepAlive;
|
|
virNetServerClientIsAuthenticated;
|
|
virNetServerClientIsAuthPendingLocked;
|
|
virNetServerClientIsClosedLocked;
|
|
virNetServerClientIsLocal;
|
|
virNetServerClientIsSecure;
|
|
virNetServerClientLocalAddrStringSASL;
|
|
virNetServerClientNew;
|
|
virNetServerClientNewPostExecRestart;
|
|
virNetServerClientPreExecRestart;
|
|
virNetServerClientRemoteAddrStringSASL;
|
|
virNetServerClientRemoteAddrStringURI;
|
|
virNetServerClientRemoveFilter;
|
|
virNetServerClientSendMessage;
|
|
virNetServerClientSetAuthLocked;
|
|
virNetServerClientSetAuthPendingLocked;
|
|
virNetServerClientSetCloseHook;
|
|
virNetServerClientSetDispatcher;
|
|
virNetServerClientSetReadonly;
|
|
virNetServerClientStartKeepAlive;
|
|
virNetServerClientWantCloseLocked;
|
|
|
|
|
|
# rpc/virnetservermdns.h
|
|
virNetServerMDNSAddEntry;
|
|
virNetServerMDNSAddGroup;
|
|
virNetServerMDNSEntryFree;
|
|
virNetServerMDNSFree;
|
|
virNetServerMDNSGroupFree;
|
|
virNetServerMDNSNew;
|
|
virNetServerMDNSRemoveEntry;
|
|
virNetServerMDNSRemoveGroup;
|
|
virNetServerMDNSStart;
|
|
virNetServerMDNSStop;
|
|
|
|
|
|
# rpc/virnetserverprogram.h
|
|
virNetServerProgramDispatch;
|
|
virNetServerProgramGetID;
|
|
virNetServerProgramGetPriority;
|
|
virNetServerProgramGetVersion;
|
|
virNetServerProgramMatches;
|
|
virNetServerProgramNew;
|
|
virNetServerProgramSendReplyError;
|
|
virNetServerProgramSendStreamData;
|
|
virNetServerProgramSendStreamError;
|
|
virNetServerProgramSendStreamHole;
|
|
virNetServerProgramUnknownError;
|
|
|
|
|
|
# rpc/virnetserverservice.h
|
|
virNetServerServiceClose;
|
|
virNetServerServiceGetAuth;
|
|
virNetServerServiceGetMaxRequests;
|
|
virNetServerServiceGetPort;
|
|
virNetServerServiceGetTLSContext;
|
|
virNetServerServiceIsReadonly;
|
|
virNetServerServiceNewFD;
|
|
virNetServerServiceNewFDOrUNIX;
|
|
virNetServerServiceNewPostExecRestart;
|
|
virNetServerServiceNewTCP;
|
|
virNetServerServiceNewUNIX;
|
|
virNetServerServicePreExecRestart;
|
|
virNetServerServiceSetDispatcher;
|
|
virNetServerServiceToggle;
|
|
|
|
|
|
# rpc/virnetsocket.h
|
|
virNetSocketAccept;
|
|
virNetSocketAddIOCallback;
|
|
virNetSocketCheckProtocols;
|
|
virNetSocketClose;
|
|
virNetSocketDupFD;
|
|
virNetSocketGetFD;
|
|
virNetSocketGetPort;
|
|
virNetSocketGetSELinuxContext;
|
|
virNetSocketGetUNIXIdentity;
|
|
virNetSocketHasCachedData;
|
|
virNetSocketHasPassFD;
|
|
virNetSocketHasPendingData;
|
|
virNetSocketIsLocal;
|
|
virNetSocketListen;
|
|
virNetSocketLocalAddrStringSASL;
|
|
virNetSocketNewConnectCommand;
|
|
virNetSocketNewConnectExternal;
|
|
virNetSocketNewConnectLibSSH2;
|
|
virNetSocketNewConnectSockFD;
|
|
virNetSocketNewConnectSSH;
|
|
virNetSocketNewConnectTCP;
|
|
virNetSocketNewConnectUNIX;
|
|
virNetSocketNewListenFD;
|
|
virNetSocketNewListenTCP;
|
|
virNetSocketNewListenUNIX;
|
|
virNetSocketNewPostExecRestart;
|
|
virNetSocketPreExecRestart;
|
|
virNetSocketRead;
|
|
virNetSocketRecvFD;
|
|
virNetSocketRemoteAddrStringSASL;
|
|
virNetSocketRemoteAddrStringURI;
|
|
virNetSocketRemoveIOCallback;
|
|
virNetSocketSendFD;
|
|
virNetSocketSetBlocking;
|
|
virNetSocketSetTLSSession;
|
|
virNetSocketUpdateIOCallback;
|
|
virNetSocketWrite;
|
|
|
|
|
|
# rpc/virnettlscontext.h
|
|
virNetTLSContextCheckCertificate;
|
|
virNetTLSContextNewClient;
|
|
virNetTLSContextNewClientPath;
|
|
virNetTLSContextNewServer;
|
|
virNetTLSContextNewServerPath;
|
|
virNetTLSInit;
|
|
virNetTLSSessionGetHandshakeStatus;
|
|
virNetTLSSessionGetKeySize;
|
|
virNetTLSSessionGetX509DName;
|
|
virNetTLSSessionHandshake;
|
|
virNetTLSSessionNew;
|
|
virNetTLSSessionRead;
|
|
virNetTLSSessionSetIOCallbacks;
|
|
virNetTLSSessionWrite;
|
|
|
|
|
|
# Let emacs know we want case-insensitive sorting
|
|
# Local Variables:
|
|
# sort-fold-case: t
|
|
# End:
|