Back to home page

OSCL-LXR

 
 

    


AF_VSOCK test suite
These tests exercise net/vmw_vsock/ host<->guest sockets for VMware, KVM, and Hyper-V.
The following tests are available:
* vsock_test - core AF_VSOCK socket functionality * vsock_diag_test - vsock_diag.ko module for listing open sockets


SEE ALSO: README

  Name Size Date (UTC) Last indexed Description
  Name Size Date (UTC) Last indexed Description
folder Parent directory - 2025-03-06 09:18:41  
control.c 4415 bytes 2025-03-06 09:18:41 2025-03-06 13:41:31

The client and server may need to coordinate to avoid race conditions like the client attempting to connect to a socket that the server is not listening on yet.

control.h 410 bytes 2025-03-06 09:18:41 2025-03-06 13:41:31  
Makefile 466 bytes 2025-03-06 09:18:41 2025-03-06 13:41:31  
README 1314 bytes 2025-03-06 09:18:41 -  
timeout.c 1284 bytes 2025-03-06 09:18:41 2025-03-06 13:41:31

Use the following pattern: timeout_begin(TIMEOUT); do { ret = accept(...); heck("accept"); } while (ret < 0 && ret == EINTR); timeout_end();

timeout.h 301 bytes 2025-03-06 09:18:41 2025-03-06 13:41:31  
util.c 8154 bytes 2025-03-06 09:18:41 2025-03-06 13:41:31  
util.h 1564 bytes 2025-03-06 09:18:41 2025-03-06 13:41:31  
vsock_diag_test.c 11566 bytes 2025-03-06 09:18:41 2025-03-06 13:41:31  
vsock_test.c 16665 bytes 2025-03-06 09:18:41 2025-03-06 13:41:31