[Return to Top] [Primary Objects]

EROS Object Reference

Primary Objects

Number

D R A F T

Description

A Number key represents three 32-bit integers. It is used primarily to describe address space offsets, or to store numeric values within a Node. For example, Number keys are used to store the machine register values within the process root and general registers Nodes when a process is not actually on the processor.

Unlike other objects, a number object is self-contained within its key.

An operation on the Node key can be used to create a number key with specified values and store it within the Node.

While a number is a constant, holders of a Node key can overwrite that number with a different number.

Note: Formerly, number keys always returned KT+1 as the result code to any request. With the introduction of the void capability, this is no longer true.


Operations

Check Alleged Key Type (OC = KT)

Returns the alleged type of the key.
Reply R1 AKT_Number: Key is a number key.

GetValue (OC = OC_Number_Value (1))

Returns the number key values.

Reply R1 The first integer value.
R2 The second integer value.
R3 The third integer value.
Result RC_OK Operation completed successfully.

Copyright 1998, 2001 by Jonathan Shapiro. All rights reserved. For terms of redistribution, see the GNU General Public License