Hello,

Damien Zammit, le lun. 08 févr. 2021 20:33:16 +1100, a ecrit:
> I'm getting very close to working pci + rump.

Did you manage to find answers to your previous questions?
(I have to admit I didn't have time to dive into them)

> In pci-arbiter, what port rights do I return in device_open?

The idea would be that hurd_pci.c's pci_system_hurd_create would add,
before its

  pci_server_port = file_name_lookup(_SERVERS_BUS_PCI, 0, 0);

an attempt to use device_open first (if the device master port is
available):

  device_open (device_master, D_READ|D_WRITE, "pci", &pci_server_port)

then, the rest of pci-arbiter accesses such as enum_devices etc. can use
e.g. file_name_lookup_under + openport + fdopendir instead of opendir.


So what you want to return for device_open is a port to the root
directory of the pci-arbiter tree.

Samuel

Reply via email to