root/include/net/vsock_addr.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* SPDX-License-Identifier: GPL-2.0-only */
   2 /*
   3  * VMware vSockets Driver
   4  *
   5  * Copyright (C) 2007-2013 VMware, Inc. All rights reserved.
   6  */
   7 
   8 #ifndef _VSOCK_ADDR_H_
   9 #define _VSOCK_ADDR_H_
  10 
  11 #include <linux/vm_sockets.h>
  12 
  13 void vsock_addr_init(struct sockaddr_vm *addr, u32 cid, u32 port);
  14 int vsock_addr_validate(const struct sockaddr_vm *addr);
  15 bool vsock_addr_bound(const struct sockaddr_vm *addr);
  16 void vsock_addr_unbind(struct sockaddr_vm *addr);
  17 bool vsock_addr_equals_addr(const struct sockaddr_vm *addr,
  18                             const struct sockaddr_vm *other);
  19 int vsock_addr_cast(const struct sockaddr *addr, size_t len,
  20                     struct sockaddr_vm **out_addr);
  21 
  22 #endif

/* [<][>][^][v][top][bottom][index][help] */