| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * VMware VMCI Driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2012 VMware, Inc. All rights reserved. |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 7 | | - * under the terms of the GNU General Public License as published by the |
|---|
| 8 | | - * Free Software Foundation version 2 and no later version. |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is distributed in the hope that it will be useful, but |
|---|
| 11 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
|---|
| 12 | | - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|---|
| 13 | | - * for more details. |
|---|
| 14 | 6 | */ |
|---|
| 15 | 7 | |
|---|
| 16 | 8 | #ifndef __VMW_VMCI_API_H__ |
|---|
| .. | .. |
|---|
| 27 | 19 | struct msghdr; |
|---|
| 28 | 20 | typedef void (vmci_device_shutdown_fn) (void *device_registration, |
|---|
| 29 | 21 | void *user_data); |
|---|
| 22 | +typedef void (*vmci_vsock_cb) (bool is_host); |
|---|
| 30 | 23 | |
|---|
| 31 | 24 | int vmci_datagram_create_handle(u32 resource_id, u32 flags, |
|---|
| 32 | 25 | vmci_datagram_recv_cb recv_cb, |
|---|
| .. | .. |
|---|
| 45 | 38 | int vmci_doorbell_notify(struct vmci_handle handle, u32 priv_flags); |
|---|
| 46 | 39 | u32 vmci_get_context_id(void); |
|---|
| 47 | 40 | bool vmci_is_context_owner(u32 context_id, kuid_t uid); |
|---|
| 41 | +int vmci_register_vsock_callback(vmci_vsock_cb callback); |
|---|
| 48 | 42 | |
|---|
| 49 | 43 | int vmci_event_subscribe(u32 event, |
|---|
| 50 | 44 | vmci_event_cb callback, void *callback_data, |
|---|