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 Root CNode to invoke
capAddress of cap to retype.
offsetOffset into cap to retype
newtypeKernel object type to retype to.
objsizeSize of created objects, for variable-sized types
countNumber of objects to create
toAddress of CNode cap to place retyped caps into.
slotSlot in CNode cap to start placement.
bitsNumber of valid address bits in 'to'.
Returns
Error code