MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_vhost_driver_set_protocol_features

Function rte_vhost_driver_set_protocol_features

dpdk/lib/vhost/socket.c:759–771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757}
758
759int
760rte_vhost_driver_set_protocol_features(const char *path,
761 uint64_t protocol_features)
762{
763 struct vhost_user_socket *vsocket;
764
765 pthread_mutex_lock(&vhost_user.mutex);
766 vsocket = find_vhost_user_socket(path);
767 if (vsocket)
768 vsocket->protocol_features = protocol_features;
769 pthread_mutex_unlock(&vhost_user.mutex);
770 return vsocket ? 0 : -1;
771}
772
773int
774rte_vhost_driver_get_protocol_features(const char *path,

Calls 3

pthread_mutex_lockFunction · 0.85
find_vhost_user_socketFunction · 0.85
pthread_mutex_unlockFunction · 0.85

Tested by

no test coverage detected