From e6657829a66e72078b33f4c11c4501b054fac904 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 14 Nov 2020 12:32:21 +0100 Subject: libmachdev: Avoid conflating translator name and path bootstrap translators may not wish to appear in the FS, and the name of the translator does not have to match the path where it is getting installed. * libmachdev/machdev.h (machdev_trivfs_init): Add path parameter. * libmachdev/trivfs_server.c (machdev_trivfs_init): Add path parameter, set devnode only if it is not NULL. (trivfs_S_fsys_init): Only call install_as_translator when devnode is not NULL. * /rumpdisk/main.c (main): Add path parameter. --- libmachdev/machdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmachdev/machdev.h') diff --git a/libmachdev/machdev.h b/libmachdev/machdev.h index 5f07d35f..41afe36d 100644 --- a/libmachdev/machdev.h +++ b/libmachdev/machdev.h @@ -33,7 +33,7 @@ void machdev_device_init(void); void machdev_device_shutdown(void); void * machdev_server(void *); error_t machdev_create_device_port (size_t size, void *result); -int machdev_trivfs_init(mach_port_t bootstrap_resume_task, const char *name, mach_port_t *bootstrap); +int machdev_trivfs_init(mach_port_t bootstrap_resume_task, const char *name, const char *path, mach_port_t *bootstrap); void machdev_trivfs_server(mach_port_t bootstrap); boolean_t machdev_is_master_device (mach_port_t port); -- cgit v1.2.3