mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
![Thomas Gleixner](/assets/img/avatar_default.png)
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation version 2 and no later version this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 33 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Alexios Zavras <alexios.zavras@intel.com> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190530000435.345978407@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
22 lines
657 B
C
22 lines
657 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 <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
|