Barrelfish
Functions
invocations_arch.h File Reference

Low-level capability invocations. More...

Functions

 STATIC_ASSERT (ObjType_Num< 0xFFFF,"retype invocation argument packing does not truncate enum objtype")
 Retype (part of) a capability. More...
 

Detailed Description

Low-level capability invocations.

Function Documentation

STATIC_ASSERT ( )

Retype (part of) a capability.

Retypes (part of) CPtr 'cap' into 'objsize'd caps of type 'newtype' and places them into slots starting at slot 'slot' in the CNode, addressed by 'to', with 'bits' address bits of 'to' valid.

See also cap_retype(), which wraps this.

Parameters
rootCapability of the source cspace root CNode to invoke
src_cspaceSource cspace cap address in our cspace.
capAddress of cap to retype in source cspace.
offsetOffset into cap to retype
newtypeKernel object type to retype to.
objsizeSize of created objects, for variable-sized types
countNumber of objects to create
to_cspaceDestination cspace cap address in our cspace
toAddress of CNode cap in destination cspcae to place retyped caps into.
to_levelLevel/depth of CNode cap in destination cspace
slotSlot in CNode cap to start placement.
Returns
Error code