mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
3603a2e991
This header file now only includes the "uapi/linux/vm_sockets.h". We can include directly it when needed. Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Jorgen Hansen <jhansen@vmware.com> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
23 lines
662 B
C
23 lines
662 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* VMware vSockets Driver
|
|
*
|
|
* Copyright (C) 2007-2013 VMware, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _VSOCK_ADDR_H_
|
|
#define _VSOCK_ADDR_H_
|
|
|
|
#include <uapi/linux/vm_sockets.h>
|
|
|
|
void vsock_addr_init(struct sockaddr_vm *addr, u32 cid, u32 port);
|
|
int vsock_addr_validate(const struct sockaddr_vm *addr);
|
|
bool vsock_addr_bound(const struct sockaddr_vm *addr);
|
|
void vsock_addr_unbind(struct sockaddr_vm *addr);
|
|
bool vsock_addr_equals_addr(const struct sockaddr_vm *addr,
|
|
const struct sockaddr_vm *other);
|
|
int vsock_addr_cast(const struct sockaddr *addr, size_t len,
|
|
struct sockaddr_vm **out_addr);
|
|
|
|
#endif
|