diff options
author | Damien Zammit <damien@zamaudio.com> | 2021-03-09 00:04:56 +1100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-03-08 22:17:03 +0100 |
commit | b261eb886e4ee068515484727955e416517a03b4 (patch) | |
tree | edf55004020d488a008e1cd8ab70a94724e89094 /pci-arbiter/pcifs.h | |
parent | a5fc9f2e767f034830ee5b179123b093180bf259 (diff) | |
download | hurd-b261eb886e4ee068515484727955e416517a03b4.tar.gz hurd-b261eb886e4ee068515484727955e416517a03b4.tar.bz2 hurd-b261eb886e4ee068515484727955e416517a03b4.zip |
pci-arbiter: Introduce machdev into this server
* pci-arbiter/Makefile
Add machdev lib and simplify
* pci-arbiter/main.c
(pci_device_{open,close,shutdown}): New methods
(netfs_server_func): Thread the demuxer loop
(pcifs_startup): Custom startup method
(main): Use machdev for server and detach worker threads
* pci-arbiter/options.{c,h}
Add disk-server-task and priv ports
* pci-arbiter/startup-ops.c
Delete file
Message-Id: <20210308130457.693821-4-damien@zamaudio.com>
Diffstat (limited to 'pci-arbiter/pcifs.h')
-rw-r--r-- | pci-arbiter/pcifs.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pci-arbiter/pcifs.h b/pci-arbiter/pcifs.h index 72cf2910..33a2b8c1 100644 --- a/pci-arbiter/pcifs.h +++ b/pci-arbiter/pcifs.h @@ -141,6 +141,9 @@ struct pcifs_params /* The size of the node cache. */ size_t node_cache_max; + /* Bootstrap disk server task */ + mach_port_t disk_server_task; + /* FS permissions. */ struct pcifs_perm *perms; size_t num_perms; @@ -202,7 +205,8 @@ extern volatile struct mapped_time_value *pcifs_maptime; /* FS manipulation functions */ error_t alloc_file_system (struct pcifs **fs); -error_t init_file_system (file_t underlying_node, struct pcifs *fs); +error_t init_root_node (void); +error_t init_file_system (struct pcifs *fs); error_t create_fs_tree (struct pcifs *fs); error_t fs_set_permissions (struct pcifs *fs); error_t entry_check_perms (struct iouser *user, struct pcifs_dirent *e, |