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

Re: OS.*



On 16 Aug 2013, at 08:38, Vincent Bernardoff <vb@xxxxxxxxxxxxxx> wrote:

> On 16/08/2013 13:12, Anil Madhavapeddy wrote:
>> We could modify OS to take a handle for all of its function calls.
>> This would let us spin up multiple instances if appropriate for the
>> backend.  I can see this immediately being of use in the NS3
>> simulation backend, for instance.
>> 
>> That would solve your problem with Xenstore as well, right?  The OS
>> handle could hold the multiplexing lock.
>> 
>> -anil
> 
> But then that's lots of functions to modify, right ?! I think that it would 
> be a pain to pass a OS handle to all Mirage functions that we use…

The OS module is pretty small, actually... making the low-level state
details more explicit seems better rather than a little more verbosity
in function calls. (and we could potentially use optional args, although
that doesn't necessarily help).

-anil


 


Rackspace

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