aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorStefano Stabellini <[email protected]>2017-07-06 11:01:06 -0700
committerBoris Ostrovsky <[email protected]>2017-08-31 09:45:55 -0400
commit5db4d286a8ef88a04247a005df9cdd4bce3c7673 (patch)
tree770bd3fe65e1f840f94948c84f68c58c4ae4e6c5 /lib/memory-notifier-error-inject.c
parentfb0298754ab79f0aca1a8162f9aeb5b097c0a1b1 (diff)
xen/pvcalls: implement connect command
Allocate a socket. Keep track of socket <-> ring mappings with a new data structure, called sock_mapping. Implement the connect command by calling inet_stream_connect, and mapping the new indexes page and data ring. Allocate a workqueue and a work_struct, called ioworker, to perform reads and writes to the socket. When an active socket is closed (sk_state_change), set in_error to -ENOTCONN and notify the other end, as specified by the protocol. sk_data_ready and pvcalls_back_ioworker will be implemented later. [ boris: fixed whitespaces ] Signed-off-by: Stefano Stabellini <[email protected]> Reviewed-by: Juergen Gross <[email protected]> CC: [email protected] CC: [email protected] Signed-off-by: Boris Ostrovsky <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions