hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/include/linux/vmw_vmci_api.h
....@@ -1,16 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * VMware VMCI Driver
34 *
45 * 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.
146 */
157
168 #ifndef __VMW_VMCI_API_H__
....@@ -27,6 +19,7 @@
2719 struct msghdr;
2820 typedef void (vmci_device_shutdown_fn) (void *device_registration,
2921 void *user_data);
22
+typedef void (*vmci_vsock_cb) (bool is_host);
3023
3124 int vmci_datagram_create_handle(u32 resource_id, u32 flags,
3225 vmci_datagram_recv_cb recv_cb,
....@@ -45,6 +38,7 @@
4538 int vmci_doorbell_notify(struct vmci_handle handle, u32 priv_flags);
4639 u32 vmci_get_context_id(void);
4740 bool vmci_is_context_owner(u32 context_id, kuid_t uid);
41
+int vmci_register_vsock_callback(vmci_vsock_cb callback);
4842
4943 int vmci_event_subscribe(u32 event,
5044 vmci_event_cb callback, void *callback_data,