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

Re: [MirageOS-devel] What is correct type of Mirage_stack?


  • To: mirageos-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Hannes Mehnert <hannes@xxxxxxxxxxx>
  • Date: Fri, 8 Feb 2019 12:38:06 +0100
  • Delivery-date: Fri, 08 Feb 2019 11:38:37 +0000
  • List-id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
  • Openpgp: id=11B5464249B5BD858FFF6328BC896588DF7C28EE

Hello Hiroshi,

On 07/02/2019 06:26, Hiroshi Doyu wrote:
> I'm modifying "mirage-skeleton/device-usage/network" example to save a
> handler to "Tcpip_stack" to be used in another module later.

AFAICT, you want to use the module type Mirage_stack_lwt.V4, is this
correct? This module type is defined in
https://github.com/mirage/mirage-stack . Since it includes
Mirage_device.S, it contains a type t (it's API is best seen at
https://docs.mirage.io/mirage-stack/Mirage_stack/module-type-V4/index.html).

> What type should I use for this mirage stack if I want the same code to
> be built successfully in both cases?

So, to store the stack for both Unix and freestanding / hvt, you can use
the type Mirage_stack.V4.t, and use all functions defined in
mirage-stack on that type. Does this make sense?


best,

hannes

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/mirageos-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.