bug-hurd
[Top][All Lists]
Advanced

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

Re: gnumach RPC: get info about the calling task


From: Samuel Thibault
Subject: Re: gnumach RPC: get info about the calling task
Date: Sun, 17 Oct 2021 18:32:31 +0200
User-agent: NeoMutt/20170609 (1.8.3)

Joan Lledó, le dim. 17 oct. 2021 17:41:11 +0200, a ecrit:
> El 16/10/21 a les 13:27, Sergey Bugaev ha escrit:
> > routine vm_make_proxy (
> >      target_task : vm_task_t;
> >      address : vm_address_t;
> >      size : vm_size_t;
> >      out proxy : memory_object_t);
> 
> Why the "size" parameter?

It will be useful to implement mremap with the same call.
In your case you know the size, don't you?

> I'd rather see a new wrapper for
> memory_object_create_proxy() which receives the same params but with the
> address instead of the original pager, which internally gets the pager from
> the address and calls memory_object_create_proxy(). After all, the only
> reason why I need the pager is to send it to memory_object_create_proxy() at
> netfs_impl.c:617 [1]. So why not skip one step?

That's almost the same, isn't it? (there is just the max_prot parameter,
which you can indeed add to the RPC above).

Samuel



reply via email to

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