aboutsummaryrefslogtreecommitdiff
path: root/libmachdev/machdev.h
diff options
context:
space:
mode:
authorDamien Zammit via Bug reports for the GNU Hurd <bug-hurd@gnu.org>2024-11-10 08:42:02 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-11-10 11:03:32 +0100
commite936af86df5ab09b1dead81a31d5ceb7c01576dd (patch)
tree90dd8680858cd7f81ce69ebec2278e646e609803 /libmachdev/machdev.h
parent9e943599f1b16cc7c60628c504f082f7de6c6449 (diff)
downloadhurd-e936af86df5ab09b1dead81a31d5ceb7c01576dd.tar.gz
hurd-e936af86df5ab09b1dead81a31d5ceb7c01576dd.tar.bz2
hurd-e936af86df5ab09b1dead81a31d5ceb7c01576dd.zip
acpi, libmachdev: Add _forever variant of trivfs server loop
The acpi server needs to survive after the shutdown notification, so it can serve S_acpi_sleep() RPC to actually shut down the machine. Therefore we need to keep the server alive and not respond to the trivfs goaway request. Message-ID: <20241110084135.3859485-2-damien@zamaudio.com>
Diffstat (limited to 'libmachdev/machdev.h')
-rw-r--r--libmachdev/machdev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmachdev/machdev.h b/libmachdev/machdev.h
index 50bfd41b..007d2750 100644
--- a/libmachdev/machdev.h
+++ b/libmachdev/machdev.h
@@ -39,6 +39,7 @@ int machdev_trivfs_init(int argc, char **argv, mach_port_t bootstrap_resume_task
int machdev_demuxer(mach_msg_header_t *inp, mach_msg_header_t *outp);
void machdev_trivfs_server_startup(mach_port_t bootstrap);
void * machdev_trivfs_server_loop(void *);
+void * machdev_trivfs_server_loop_forever(void *);
boolean_t machdev_is_master_device (mach_port_t port);
#endif