/* SPDX-License-Identifier: (GPL-2.0 OR CDDL-1.0) */ /* Copyright (C) 2006-2016 Oracle Corporation */ #ifndef __VBOX_UTILS_H__ #define __VBOX_UTILS_H__ #include #include struct vbg_dev; /** * vboxguest logging functions, these log both to the backdoor and call * the equivalent kernel pr_foo function. */ __printf(1, 2) void vbg_info(const char *fmt, ...); __printf(1, 2) void vbg_warn(const char *fmt, ...); __printf(1, 2) void vbg_err(const char *fmt, ...); /* Only use backdoor logging for non-dynamic debug builds */ #if defined(DEBUG) && !defined(CONFIG_DYNAMIC_DEBUG) __printf(1, 2) void vbg_debug(const char *fmt, ...); #else #define vbg_debug pr_debug #endif int vbg_hgcm_connect(struct vbg_dev *gdev, struct vmmdev_hgcm_service_location *loc, u32 *client_id, int *vbox_status); int vbg_hgcm_disconnect(struct vbg_dev *gdev, u32 client_id, int *vbox_status); int vbg_hgcm_call(struct vbg_dev *gdev, u32 client_id, u32 function, u32 timeout_ms, struct vmmdev_hgcm_function_parameter *parms, u32 parm_count, int *vbox_status); /** * Convert a VirtualBox status code to a standard Linux kernel return value. * Return: 0 or negative errno value. * @rc: VirtualBox status code to convert. */ int vbg_status_code_to_errno(int rc); /** * Helper for the vboxsf driver to get a reference to the guest device. * Return: a pointer to the gdev; or a ERR_PTR value on error. */ struct vbg_dev *vbg_get_gdev(void); /** * Helper for the vboxsf driver to put a guest device reference. * @gdev: Reference returned by vbg_get_gdev to put. */ void vbg_put_gdev(struct vbg_dev *gdev); #endif nux-2.6.24.y'>linux-2.6.24.y Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2020-10-13Merge tag 'block-5.10-2020-10-12' of git://git.kernel.dk/linux-blockLinus Torvalds
2020-10-12Merge tag 'm68k-for-v5.10-tag1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds
2020-09-28ide/macide: Convert Mac IDE driver to platform driverFinn Thain
2020-09-25block: add a bdev_is_partition helperChristoph Hellwig
2020-09-23block: move the NEED_PART_SCAN flag to struct gendiskChristoph Hellwig
2020-09-10ide-gd: stop using the disk events mechanismChristoph Hellwig
2020-09-10ide-cd: remove idecd_revalidate_diskChristoph Hellwig
2020-09-10ide-cd: use bdev_check_media_changedChristoph Hellwig
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva
2020-07-16treewide: Remove uninitialized_var() usageKees Cook
2020-07-16ide: Remove uninitialized_var() usageKees Cook
2020-06-14treewide: replace '---help---' in Kconfig files with 'help'Masahiro Yamada
2020-05-04ide-cd: rename cdrom_read_tocentryChristoph Hellwig
2020-05-04block: add a cdrom_device_info pointer to struct gendiskChristoph Hellwig
2020-04-22block: move dma_pad handling from blk_rq_map_sg into the callersChristoph Hellwig
2020-04-04drivers/ide: Fix build regression.David S. Miller
2020-04-02drivers/ide: convert to list_for_each_entry_safe()chenqiwu
2020-03-30Merge tag 'v5.6' into mips-nextThomas Bogendoerfer
2020-03-24ide: remove no longer used au1xxx-ide driverBartlomiej Zolnierkiewicz
2020-02-24scsi: compat_ioctl: cdrom: Replace .ioctl with .compat_ioctl in four appropri...Adam Williamson
2020-02-04proc: convert everything to "struct proc_ops"Alexey Dobriyan
2020-01-30Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/ideLinus Torvalds
2020-01-30ide: make drive->dn read onlyDan Carpenter
2020-01-20ide: serverworks: potential overflow in svwks_set_pio_mode()Dan Carpenter
2020-01-20cmd64x: potential buffer overflow in cmd64x_program_timings()Dan Carpenter
2020-01-20ide: remove unneeded header include path to drivers/ideMasahiro Yamada
2020-01-20ide: qd65xx: Fix cast to pointer from integer of different sizeKrzysztof Kozlowski
2020-01-20ide: ht6560b: Fix cast to pointer from integer of different sizeKrzysztof Kozlowski
2020-01-20ide: remove set but not used variable 'hwif'Wang Hai
2020-01-20ide: remove unnecessary touch_softlockup_watchdogGuoqing Jiang
2020-01-20ide: tx4939ide: Fix the name used in a 'devm_request_mem_region()' callChristophe JAILLET
2020-01-03compat_ioctl: move HDIO ioctl handling into drivers/ideArnd Bergmann
2020-01-03compat_ioctl: move cdrom commands into cdrom.cArnd Bergmann
2020-01-03compat_ioctl: ide: floppy: add handlerArnd Bergmann
2019-12-01Merge tag 'compat-ioctl-5.5' of git://git.kernel.org:/pub/scm/linux/kernel/gi...Linus Torvalds
2019-11-25Merge tag 'printk-for-5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/p...Linus Torvalds
2019-11-18m68k/atari: Convert Falcon IDE drivers to platform driversMichael Schmitz
2019-10-23compat_ioctl: move tape handling into driversArnd Bergmann
2019-10-18ide: Use pr_warn instead of pr_warningKefeng Wang
2019-08-16ide: remove the sgiioc4 driverChristoph Hellwig
2019-07-23ide: Use dev_get_drvdata where possibleChuhong Yuan
2019-07-09Merge tag 'docs-5.3' of git://git.lwn.net/linuxLinus Torvalds