/* Option name for STREAM socket buffer size. Use as the option name in *setsockopt(3)orgetsockopt(3)tosetorgetanunsignedlonglongthat *specifiesthesizeofthebufferunderlyingavSocketsSTREAMsocket. *ValueisclampedtotheMINandMAX.
*/
#define SO_VM_SOCKETS_BUFFER_SIZE 0
/* Option name for STREAM socket minimum buffer size. Use as the option name *insetsockopt(3)orgetsockopt(3)tosetorgetanunsignedlonglongthat *specifiestheminimumsizeallowedforthebufferunderlyingavSockets *STREAMsocket.
*/
#define SO_VM_SOCKETS_BUFFER_MIN_SIZE 1
/* Option name for STREAM socket maximum buffer size. Use as the option name *insetsockopt(3)orgetsockopt(3)tosetorgetanunsignedlonglong *thatspecifiesthemaximumsizeallowedforthebufferunderlyinga *vSocketsSTREAMsocket.
*/
#define SO_VM_SOCKETS_BUFFER_MAX_SIZE 2
/* Option name for socket peer's host-specific VM ID. Use as the option name *ingetsockopt(3)togetahost-specificidentifierforthepeerendpoint's *VM.Theidentifierisasignedinteger. *Onlyavailableforhypervisorendpoints.
*/
#define SO_VM_SOCKETS_PEER_HOST_VM_ID 3
/* Option name for determining if a socket is trusted. Use as the option name *ingetsockopt(3)todetermineifasocketistrusted.Thevalueisa *signedinteger.
*/
#define SO_VM_SOCKETS_TRUSTED 5
/* Option name for STREAM socket connection timeout. Use as the option name *insetsockopt(3)orgetsockopt(3)tosetorgettheconnection *timeoutforaSTREAMsocket.
*/
#define SO_VM_SOCKETS_CONNECT_TIMEOUT_OLD 6
/* Option name for using non-blocking send/receive. Use as the option name *forsetsockopt(3)orgetsockopt(3)tosetorgetthenon-blocking *transmit/receiveflagforaSTREAMsocket.Thisflagdetermineswhether *send()andrecv()canbecalledinnon-blockingcontextsforthegiven *socket.Thevalueisasignedinteger. * *Thisoptionisonlyrelevanttokernelendpoints,wheredeschedulingthe *threadofexecutionisnotallowed,forexample,whileholdingaspinlock. *Itisnottobeconfusedwithconventionalnon-blockingsocketoperations. * *Onlyavailableforhypervisorendpoints.
*/
/* The vSocket equivalent of INADDR_ANY. This works for the svm_cid field of *sockaddr_vmandindicatesthecontextIDofthecurrentendpoint.
*/
#define VMADDR_CID_ANY -1U
/* Bind to any available port. Works for the svm_port field of *sockaddr_vm.
*/
#define VMADDR_PORT_ANY -1U
/* Use this as the destination CID in an address when referring to the *hypervisor.VMCIreliesonitbeing0,butthiswouldbeusefulforother *transportstoo.
*/
#define VMADDR_CID_HYPERVISOR 0
/* Use this as the destination CID in an address when referring to the *localcommunication(loopback). *(ThiswasVMADDR_CID_RESERVED,butevenVMCIdoesn'tuseitanymore, *itwasalegacyvaluefromanolderrelease).
*/
#define VMADDR_CID_LOCAL 1
/* Use this as the destination CID in an address when referring to the host *(anyprocessotherthanthehypervisor).VMCIreliesonitbeing2,but *thiswouldbeusefulforothertransportstoo.
*/
#define VMADDR_CID_HOST 2
/* The current default use case for the vsock channel is the following: *localvsockcommunicationbetweenguestandhostandnestedVMssetup. *Inadditiontothis,implicitly,thevsockpacketsareforwardedtothehost *ifnohost->guestvsocktransportisset. * *Setthisflagvalueinthesockaddr_vmcorrespondingfieldifthevsock *packetsneedtobealwaysforwardedtothehost.Usingthisbehavior, *vsockcommunicationbetweensiblingVMscanbesetup. * *Thiswaycanexplicitlydistinguishbetweenvsockchannelscreatedfor *differentusecases,suchasnestedVMs(orlocalcommunicationbetween *guestandhost)andsiblingVMs. * *Theflagcanbesetintheconnectlogicintheuserspaceapplicationflow. *Inthelistenlogic(fromkernelspace)theflagissetontheremotepeer *address.Thishappensforanincomingconnectionwhenitisroutedfromthe *hostandcomesfromtheguest(localCIDandremoteCID>VMADDR_CID_HOST).
*/ #define VMADDR_FLAG_TO_HOST 0x01
/* Invalid vSockets version. */
#define VM_SOCKETS_INVALID_VERSION -1U
/* The epoch (first) component of the vSockets version. A single byte *representingtheepochcomponentofthevSocketsversion.
*/
/* The major (second) component of the vSockets version. A single byte *representingthemajorcomponentofthevSocketsversion.Typically *changesforeverymajorreleaseofaproduct.
*/
/* Address structure for vSockets. The address family should be set to *AF_VSOCK.Thestructuremembersshouldallalignontheirnatural *boundarieswithoutresortingtocompilerpackingdirectives.Thetotalsize *ofthisstructureshouldbeexactlythesameasthatofstructsockaddr.
*/
/* MSG_ZEROCOPY notifications are encoded in the standard error format, *sock_extended_err.SeeDocumentation/networking/msg_zerocopy.rstin *kernelsourcetreeformoredetails.
*/
/* 'cmsg_level' field value of 'struct cmsghdr' for notification parsing *whenMSG_ZEROCOPYflagisusedontransmissions.
*/
#define SOL_VSOCK 287
/* 'cmsg_type' field value of 'struct cmsghdr' for notification parsing *whenMSG_ZEROCOPYflagisusedontransmissions.
*/
#define VSOCK_RECVERR 1
#endif/* _UAPI_VM_SOCKETS_H */
Messung V0.5 in Prozent
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.31Angebot
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-09-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.