hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/vbox_utils.h
....@@ -16,6 +16,7 @@
1616 __printf(1, 2) void vbg_info(const char *fmt, ...);
1717 __printf(1, 2) void vbg_warn(const char *fmt, ...);
1818 __printf(1, 2) void vbg_err(const char *fmt, ...);
19
+__printf(1, 2) void vbg_err_ratelimited(const char *fmt, ...);
1920
2021 /* Only use backdoor logging for non-dynamic debug builds */
2122 #if defined(DEBUG) && !defined(CONFIG_DYNAMIC_DEBUG)
....@@ -24,15 +25,17 @@
2425 #define vbg_debug pr_debug
2526 #endif
2627
27
-int vbg_hgcm_connect(struct vbg_dev *gdev,
28
+int vbg_hgcm_connect(struct vbg_dev *gdev, u32 requestor,
2829 struct vmmdev_hgcm_service_location *loc,
2930 u32 *client_id, int *vbox_status);
3031
31
-int vbg_hgcm_disconnect(struct vbg_dev *gdev, u32 client_id, int *vbox_status);
32
+int vbg_hgcm_disconnect(struct vbg_dev *gdev, u32 requestor,
33
+ u32 client_id, int *vbox_status);
3234
33
-int vbg_hgcm_call(struct vbg_dev *gdev, u32 client_id, u32 function,
34
- u32 timeout_ms, struct vmmdev_hgcm_function_parameter *parms,
35
- u32 parm_count, int *vbox_status);
35
+int vbg_hgcm_call(struct vbg_dev *gdev, u32 requestor, u32 client_id,
36
+ u32 function, u32 timeout_ms,
37
+ struct vmmdev_hgcm_function_parameter *parms, u32 parm_count,
38
+ int *vbox_status);
3639
3740 /**
3841 * Convert a VirtualBox status code to a standard Linux kernel return value.