/openbmc/qemu/python/qemu/machine/ |
H A D | console_socket.py | 2 QEMU Console Socket Module: 5 which can drain a socket and optionally dump the bytes to file. 17 import socket 23 class ConsoleSocket(socket.socket): 25 ConsoleSocket represents a socket attached to a char device. 28 :param sock_fd: Optionally, an existing socket file descriptor. 31 :param drain: Optionally, drains the socket and places the bytes 48 socket.socket.__init__(self, socket.AF_UNIX, socket.SOCK_STREAM) 52 socket.socket.__init__(self, fileno=sock_fd) 70 """Drains the socket and runs while the socket is open.""" [all …]
|
H A D | qtest.py | 5 offer a connection to QEMU's qtest protocol socket, and a qtest-enabled 21 import socket 37 QEMUQtestProtocol implements a connection to a qtest socket. 39 :param address: QEMU address, can be either a unix socket path (string) 42 :param sock: An existing socket can be provided as an alternative to 44 :param server: server mode, listens on the socket. Only meaningful 46 socket. 48 :raise socket.error: on socket connection errors 56 sock: Optional[socket.socket] = None, argument 64 raise ValueError("server=True is meaningless when passing socket") [all …]
|
/openbmc/qemu/hw/ppc/ |
H A D | rs6000_mc.c | 53 int socket; in rs6000mc_port0803_read() local 55 /* (1 << socket) indicates 32 MB SIMM at given socket */ in rs6000mc_port0803_read() 56 for (socket = 0; socket < 6; socket++) { in rs6000mc_port0803_read() 57 if (s->simm_size[socket] == 32) { in rs6000mc_port0803_read() 58 val |= (1 << socket); in rs6000mc_port0803_read() 72 int socket; in rs6000mc_port0804_read() local 74 /* (1 << socket) indicates SIMM absence at given socket */ in rs6000mc_port0804_read() 75 for (socket = 0; socket < 6; socket++) { in rs6000mc_port0804_read() 76 if (s->simm_size[socket]) { in rs6000mc_port0804_read() 77 val &= ~(1 << socket); in rs6000mc_port0804_read() [all …]
|
/openbmc/qemu/backends/ |
H A D | spdm-socket.c | 3 * QEMU SPDM socket support 14 #include "system/spdm-socket.h" 17 static bool read_bytes(const int socket, uint8_t *buffer, in read_bytes() argument 24 result = recv(socket, buffer + number_received, in read_bytes() 34 static bool read_data32(const int socket, uint32_t *data) in read_data32() argument 38 result = read_bytes(socket, (uint8_t *)data, sizeof(uint32_t)); in read_data32() 46 static bool read_multiple_bytes(const int socket, uint8_t *buffer, in read_multiple_bytes() argument 53 result = read_data32(socket, &length); in read_multiple_bytes() 70 return read_bytes(socket, buffer, length); in read_multiple_bytes() 73 static bool receive_platform_data(const int socket, in receive_platform_data() argument [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bb/asyncrpc/ |
H A D | serv.py | 12 import socket 30 def __init__(self, socket, proto_name, logger): argument 31 self.socket = socket 39 "address": socket.address, 45 await self.socket.close() 52 self.logger.info("Client %r connected" % (self.socket.address,)) 55 client_protocol = await self.socket.recv() 74 header = await self.socket.recv() 83 await self.socket.send("%s: %s" % (k, v)) 84 await self.socket.send("") [all …]
|
H A D | client.py | 11 import socket 59 self.socket = None 82 # The socket must be opened synchronously so that CWD doesn't get 84 sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM, 0) 131 await self.socket.send("%s %s" % (self.proto_name, self.proto_version)) 132 await self.socket.send( 136 await self.socket.send("%s: %s" % (k, v)) 139 await self.socket.send("") 144 line = await self.socket.recv() 156 if self.socket is None: [all …]
|
/openbmc/qemu/include/hw/riscv/ |
H A D | numa.h | 37 * @socket_id: socket index 39 * Returns: first hartid for a valid socket and -1 for an invalid socket 46 * @socket_id: socket index 48 * Returns: last hartid for a valid socket and -1 for an invalid socket 55 * @socket_id: socket index 57 * Returns: number of harts for a valid socket and -1 for an invalid socket 64 * @socket_id: socket index 66 * Returns: offset of ram belonging to given socket 73 * @socket_id: socket index 75 * Returns: size of ram belonging to given socket [all …]
|
/openbmc/qemu/include/io/ |
H A D | channel-socket.h | 29 #define TYPE_QIO_CHANNEL_SOCKET "qio-channel-socket" 37 * that can transport data over a UNIX socket or TCP socket. 39 * for accepting client connections, tuning some socket 40 * parameters and getting socket address strings. 58 * Create a channel for performing I/O on a socket 60 * creating the socket, it must be setup as a client 63 * Returns: the socket channel object 70 * @fd: the socket file descriptor 73 * Create a channel for performing I/O on the socket 76 * Returns: the socket channel object, or NULL on error [all …]
|
/openbmc/slpd-lite/ |
H A D | sock_channel.hpp | 16 * @brief Provides encapsulation for UDP socket operations like Read, Peek, 35 * Initialize the IPMI socket object with the socket descriptor 37 * @param [in] File Descriptor for the socket 52 * socket 74 * Reads the data available on the socket 78 * available on the socket and return code is 0. 87 * Writes the data in the vector to the socket 90 * The vector would be the buffer of data to write to the socket. 105 * The socket descriptor is the UDP server socket for the IPMI port. 106 * The same socket descriptor is used for multiple ipmi clients and the [all …]
|
/openbmc/qemu/python/qemu/utils/ |
H A D | qom.py | 52 usage: qom-set [-h] [--socket SOCKET] <path>.<property> <value> 62 --socket SOCKET, -s SOCKET 63 QMP socket path or address (addr:port). May also be 100 usage: qom-get [-h] [--socket SOCKET] <path>.<property> 109 --socket SOCKET, -s SOCKET 110 QMP socket path or address (addr:port). May also be 148 usage: qom-list [-h] [--socket SOCKET] <path> 157 --socket SOCKET, -s SOCKET 158 QMP socket path or address (addr:port). May also be 194 usage: qom-tree [-h] [--socket SOCKET] [<path>] [all …]
|
/openbmc/qemu/migration/ |
H A D | cpr-transfer.c | 11 #include "io/channel-socket.h" 25 addr->u.socket.type == SOCKET_ADDRESS_TYPE_UNIX) { in cpr_transfer_output() 29 SocketAddress *saddr = &addr->u.socket; in cpr_transfer_output() 34 trace_cpr_transfer_output(addr->u.socket.u.q_unix.path); in cpr_transfer_output() 49 (addr->u.socket.type == SOCKET_ADDRESS_TYPE_UNIX || in cpr_transfer_input() 50 addr->u.socket.type == SOCKET_ADDRESS_TYPE_FD)) { in cpr_transfer_input() 53 SocketAddress *saddr = &addr->u.socket; in cpr_transfer_input() 57 qio_net_listener_set_name(listener, "cpr-socket-listener"); in cpr_transfer_input() 65 addr->u.socket.type == SOCKET_ADDRESS_TYPE_UNIX ? in cpr_transfer_input() 66 addr->u.socket.u.q_unix.path : addr->u.socket.u.fd.str); in cpr_transfer_input() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/open-isns/files/ |
H A D | 0001-isnsd.socket-use-run-instead-of-var-run.patch | 4 Subject: [PATCH] isnsd.socket: use /run instead of /var/run 10 isnsd.socket | 2 +- 13 diff --git a/isnsd.socket b/isnsd.socket 15 --- a/isnsd.socket 16 +++ b/isnsd.socket 18 [Socket] 23 [Socket]
|
/openbmc/qemu/docs/system/devices/ |
H A D | net.rst | 12 socket host network backend). 96 connected to QEMU either by using a socket (``-netdev stream``) or by using 113 By default, passt will be started in the socket-based mode. 147 To use socket based passt interface: 152 passt --socket ~/passt.socket 154 …``--socket`` is not provided, passt will print the path of the UNIX domain socket QEMU can connect… 158 …net-pci,netdev=netdev0 -netdev stream,id=netdev0,server=off,addr.type=unix,addr.path=~/passt.socket 160 Where ``~/passt.socket`` is the UNIX socket created by passt to 168 passt --vhost-user --socket ~/passt.socket 173 …|qemu_system| [...OPTIONS...] -m $RAMSIZE -chardev socket,id=chr0,path=~/passt.socket -netdev vhos… [all …]
|
/openbmc/qemu/chardev/ |
H A D | trace-events | 20 # char-socket.c 21 chr_socket_poll_err(void *chrdev, const char *label) "chardev socket poll error %p (%s)" 22 chr_socket_recv_err(void *chrdev, const char *label, const char *err) "chardev socket recv error %p… 23 chr_socket_recv_eof(void *chrdev, const char *label) "chardev socket recv end-of-file %p (%s)" 24 chr_socket_write_err(void *chrdev, const char *label, const char *err) "chardev socket write error … 25 chr_socket_disconnect(void *chrdev, const char *label) "chardev socket disconnect %p (%s)" 26 chr_socket_hangup(void *chrdev, const char *label) "chardev socket hangup %p (%s)" 27 chr_socket_ws_handshake_err(void *chrdev, const char *label, const char *err) "chardev socket webso… 28 chr_socket_tls_handshake_err(void *chrdev, const char *label, const char *err) "chardev socket TLS … 29 chr_socket_tls_init_err(void *chrdev, const char *label, const char *err) "chardev socket TLS init …
|
/openbmc/qemu/include/system/ |
H A D | spdm-socket.h | 2 * QEMU SPDM socket support 27 * spdm_socket_connect: connect to an external SPDM socket 31 * This will connect to an external SPDM socket server. On error 33 * will return the socket number. 39 * @socket: socket returned from spdm_socket_connect() 46 * Send platform data to a SPDM server on socket and then receive 49 uint32_t spdm_socket_rsp(const int socket, uint32_t transport_type, 55 * @socket: socket returned from spdm_socket_connect() 60 void spdm_socket_close(const int socket, uint32_t transport_type);
|
/openbmc/openbmc/poky/meta/lib/oeqa/utils/ |
H A D | network.py | 7 import socket 10 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM if not udp else socket.SOCK_DGRAM)
|
/openbmc/qemu/qapi/ |
H A D | sockets.json | 6 # Socket data types 19 # @unix: unix socket 45 # Captures a socket address or address range in the Internet 61 # @keep-alive: enable keep-alive when connecting to/listening on this socket. 66 # socket option is defined (this includes Linux, Windows, macOS, FreeBSD, 71 # where TCP_KEEPIDLE socket option is defined (this includes Linux, 100 # Captures a socket address in the local ("Unix socket") namespace. 104 # @abstract: if true, this is a Linux abstract socket address. @path 108 # @tight: if false, pad an abstract socket address with enough null 123 # Captures a socket address in the vsock namespace. [all …]
|
/openbmc/boost-dbus/include/dbus/detail/ |
H A D | watch_timeout.hpp | 28 boost::asio::generic::stream_protocol::socket &socket = in operator ()() local 29 *static_cast<boost::asio::generic::stream_protocol::socket *>(data); in operator ()() 31 watch_toggled(dbus_watch, &socket.get_io_service()); in operator ()() 41 auto socket = in watch_toggled() local 42 static_cast<boost::asio::generic::stream_protocol::socket *>(watch_data); in watch_toggled() 45 socket->async_read_some(boost::asio::null_buffers(), in watch_toggled() 49 socket->async_write_some(boost::asio::null_buffers(), in watch_toggled() 53 socket->cancel(); in watch_toggled() 67 // socket based watches in add_watch() 70 boost::asio::generic::stream_protocol::socket &socket = in add_watch() local [all …]
|
/openbmc/pldm/oem/ibm/libpldmresponder/ |
H A D | utils.hpp | 19 /** @brief Setup UNIX socket 20 * This function creates listening socket in non-blocking mode and allows only 21 * one socket connection. returns accepted socket after accepting connection 24 * @param[in] socketInterface - unix socket path 25 * @return on success returns accepted socket fd 30 /** @brief Write data on UNIX socket 31 * This function writes given data to a non-blocking socket. 33 * on unix socket. 35 * @param[in] sock - unix socket [all...] |
/openbmc/phosphor-net-ipmid/ |
H A D | socket_channel.hpp | 3 #include <sys/socket.h> 22 * @brief Provides encapsulation for UDP socket operations like Read, Peek, 38 * Initialize the IPMI socket object with the socket descriptor 40 * @param [in] pointer to a boost::asio udp socket object 44 explicit Channel(std::shared_ptr<boost::asio::ip::udp::socket> socket) : in Channel() argument 45 socket(socket) in Channel() 66 * socket 132 * Reads the data available on the socket 136 * available on the socket and return code is 0. 144 std::vector<uint8_t> packet(socket->available()); in read() [all …]
|
/openbmc/qemu/io/ |
H A D | trace-events | 16 # channel-socket.c 17 qio_channel_socket_new(void *ioc) "Socket new ioc=%p" 18 qio_channel_socket_new_fd(void *ioc, int fd) "Socket new ioc=%p fd=%d" 19 qio_channel_socket_connect_sync(void *ioc, void *addr) "Socket connect sync ioc=%p addr=%p" 20 qio_channel_socket_connect_async(void *ioc, void *addr) "Socket connect async ioc=%p addr=%p" 21 qio_channel_socket_connect_fail(void *ioc) "Socket connect fail ioc=%p" 22 qio_channel_socket_connect_complete(void *ioc, int fd) "Socket connect complete ioc=%p fd=%d" 23 qio_channel_socket_listen_sync(void *ioc, void *addr, int num) "Socket listen sync ioc=%p addr=%p n… 24 qio_channel_socket_listen_async(void *ioc, void *addr, int num) "Socket listen async ioc=%p addr=%p… 25 qio_channel_socket_listen_fail(void *ioc) "Socket listen fail ioc=%p" [all …]
|
/openbmc/qemu/linux-user/ |
H A D | socket.h | 7 /** sock_type - Socket types - default values 10 * @SOCK_STREAM - stream (connection) socket 11 * @SOCK_DGRAM - datagram (conn.less) socket 12 * @SOCK_RAW - raw socket 14 * @SOCK_SEQPACKET - sequential packet socket 15 * @SOCK_DCCP - Datagram Congestion Control Protocol socket 35 /* Flags for socket, socketpair, accept4 */
|
/openbmc/libpldm/src/transport/ |
H A D | mctp-demux.c | 5 #include "socket.h" 18 #include <sys/socket.h> 28 int socket; member 50 fd = socket(AF_UNIX, SOCK_SEQPACKET, 0); in pldm_transport_mctp_demux_open() 77 pollfd->fd = ctx->socket; in pldm_transport_mctp_demux_init_pollfd() 148 length = recv(demux->socket, NULL, 0, MSG_PEEK | MSG_TRUNC); in pldm_transport_mctp_demux_recv() 160 recv(demux->socket, buf, length, 0); in pldm_transport_mctp_demux_recv() 174 bytes = recvmsg(demux->socket, &msg, 0); in pldm_transport_mctp_demux_recv() 231 ssize_t rc = sendmsg(demux->socket, &msg, 0); in pldm_transport_mctp_demux_send() 256 demux->socket = pldm_transport_mctp_demux_open(); in pldm_transport_mctp_demux_init() [all …]
|
/openbmc/openbmc/poky/bitbake/lib/toaster/toastermain/management/commands/ |
H A D | checksocket.py | 13 import socket 41 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 42 sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) 44 except (socket.error, OverflowError) as err:
|
/openbmc/qemu/include/qemu/ |
H A D | sockets.h | 21 * @type: specifies the socket type. 22 * @protocol: specifies a particular protocol to be used with the socket 23 * @sv: an array to store the pair of socket created 37 * Return the number of bytes transferred over the socket. 40 * This function don't work with non-blocking socket's. 41 * Any of the possibilities with non-blocking socket's is bad: 87 * @sa: socket address struct 91 * Get the string representation of the socket 97 * Returns: the socket address struct, or NULL on error 106 * @fd: the socket file handle [all …]
|