aboutsummaryrefslogtreecommitdiff
path: root/libmachdev/machdev-device_emul.h
Commit message (Collapse)AuthorAgeFilesLines
* Make RPC input array parameters constSamuel Thibault2022-01-161-2/+2
| | | | | This follows mig's cf4bcc3f1435 ("Also add const qualifiers on server side")
* libmachdev: Fix startup_dosyncSamuel Thibault2021-08-111-1/+1
| | | | | | | We do not actually want to shut everything down. For instance, we still have to be able to start the acpi translator to perform the actual shutdown. What we however have to do is syncing the disks.
* libmachdev: pass shutdown handle to shutdown methodDamien Zammit2021-03-071-1/+1
| | | | | | | | | | | | * libmachdev/machdev-device_emul.h (struct machdev_device_emulation_ops): Add shutdown method. * libmachdev/ds_routines.c (machdev_device_shutdown): Take dosync_handle handle and pass it to shutdown method. * libmachdev/machdev.h (machdev_device_shutdown): Update prototype. * libmachdev/trivfs_server.c (S_startup_dosync): Pass shutdown handle to machdev_device_shutdown call. * rumpdisk/block-rump.c (rumpdisk_device_shutdown): Take dosync_handle parameter.
* libmachdev: Introduce startup notification for clean rumpdisk shutdownDamien Zammit2020-08-021-0/+1
| | | | Message-Id: <20200801050538.273196-1-damien@zamaudio.com>
* machdev: Expose machdev_emul_device structureSamuel Thibault2020-03-301-0/+4
| | | | | | | | | | | | | | | * libmachdev/machdev-dev_hdr.h (DEVICE_NULL): Remove macro. (emul_device): Rename structure to machdev_emul_device. (emul_device_t): Rename type to machdev_emul_device_t. (mach_device, mach_device_t, MACH_DEVICE_NULL): Move to... * libmachdev/mach_device.h: ... new file. * libmachdev/ds_routines.c: Include "mach_device.h". * libmachdev/machdev-device_emul.h: Include <mach/notify.h>, <device/device_types.h>, <device/net_status.h>, <errno.h> * libmachdev/machdev.h: Include "machdev_hdr.h". * libmachdev/mig-decls.h: Include "mach_device.h". * libmachdev/Makefile (LCLHDRS): Add mach_device.h. (installhdrs): Add machdev-dev_hdr.h.
* libmachdev: Add common machdevZheng Da2020-03-291-0/+65
* libmachdev: New directory.