[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] proxy memory objects
From: |
Thomas Bushnell, BSG |
Subject: |
Re: [PATCH] proxy memory objects |
Date: |
13 Dec 2002 11:47:00 -0800 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Marcus Brinkmann <address@hidden> writes:
> On Wed, Dec 11, 2002 at 09:55:35PM -0800, Thomas Bushnell, BSG wrote:
> > (Incidental question: why does vm_object_enter fail on a proxy? I
> > would have expected it to hang when the call to memory_object_init
> > fails to get a proper response. That is, it should see that this is
> > the first time the kernel has noticed this "pager", send
> > memory_object_init to it, and then do the vm_object_wait call looking
> > for VM_OBJECT_EVENT_INITIALIZED, which should never happen.)
>
> Because of "po = ip_kotype(pager)", and we have a kotype for proxy objects,
> so the "if (po != IKOT_NONE) break;" hits ("bail if there is already a
> kobject associated with the pager port"). Later below, it is careful to
> only do stuff if it is really a VM object, which it isn't because it is an
> unhandled kernel object type.
Ah, so a real pager, which is just an ordinary mach port, isn't an
ikot at all, so you get IKOT_NONE. So we never bother sending the
init request to the port and instead we notice that it's a kernel
object.
Cool.
- Re: [PATCH] proxy memory objects, (continued)
- Re: [PATCH] proxy memory objects, Thomas Bushnell, BSG, 2002/12/12
- Re: [PATCH] proxy memory objects, Marcus Brinkmann, 2002/12/12
- Re: [PATCH] proxy memory objects, Thomas Bushnell, BSG, 2002/12/12
- Re: [PATCH] proxy memory objects, Roland McGrath, 2002/12/14
- Re: [PATCH] proxy memory objects, Marcus Brinkmann, 2002/12/14
- Re: [PATCH] proxy memory objects, Roland McGrath, 2002/12/15
- Re: [PATCH] proxy memory objects, Marcus Brinkmann, 2002/12/15
Re: [PATCH] proxy memory objects, Marcus Brinkmann, 2002/12/13
- Re: [PATCH] proxy memory objects,
Thomas Bushnell, BSG <=