bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Almost working pci-arbiter with rumpdisk


From: Samuel Thibault
Subject: Re: Almost working pci-arbiter with rumpdisk
Date: Mon, 8 Feb 2021 19:33:22 +0100
User-agent: NeoMutt/20170609 (1.8.3)

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

[Prev in Thread] Current Thread [Next in Thread]