[Return to Top] [Kernel Objects]

EROS Object Reference

Kernel Objects

Discrim

D R A F T

Description

The Discrim key enables the holder to discern certain information concerning the type and discretion of other keys.


Operations

Check Alleged Key Type (OC = KT)

Returns the alleged type of the key.
ReplyR1AKT_Discrim: Key is a discrim key
ResultRC_OKOperation completed successfully.

Classify (OC = OC_Discrim_Classify (1))

Returns the category of the passed key.
RequestSK0The key to be classified.
ReplyR1Discrim_Class_VoidSK0 is a void key
Discrim_Class_NumberSK0 is a number key
Discrim_Class_ResumeSK0 is a resume key.
Discrim_Class_MemorySK0 is a page, node, address space, or sense key.
Discrim_Class_SchedSK0 is a schedule key.
Discrim_Class_OtherSK0 is some other type of key.
ResultRC_OKOperation completed successfully.

Verify Discretion (OC = OC_Discrim_Verify (2))

Determines whether the key in question is capable of leaking information:
RequestSK0The key to be checked.
ReplyR10: Key is some other key.
1: Key is one of the following, which are discrete:
  • A read-only page key
  • A read-only, no-call segment key
  • A sense key
  • A number key
  • The discrim key
  • The void key
ResultRC_OKOperation completed successfully.

Compare Keys (OC = OC_Discrim_Compare (3))

Determines whether two keys are identical.
RequestSK0, SK1The keys to be compared.
ReplyR10: Keys are different.
1: Keys are identical.
ResultRC_OKOperation completed successfully.


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