A Nanokernel utility function that compares two memory buffers for equality.
The two buffers are considered equal only if:
1. the buffers have the same length
and
2. the binary content of both buffers is the same.
Parameters | |
---|---|
aLeft | The start address of the first buffer in the comparison. |
aLeftLen | The length of the first buffer in the comparison. |
aRight | The start address of the second buffer in the comparison. |
aRightLen | The length of the second buffer in the comparison. |
Panic Codes | |
---|---|
USER | 88 In debug mode only, if aLeftL is negative, and the function is called on the user side. |
KERN-COMMON | 88 In debug mode only, if aLeftL is negative, and the function is called on the kernel side. |
USER | 89 In debug mode only, if aRightL is negative, and the function is called on the user side. |
KERN-COMMON | 89 In debug mode only, if aRightL is negative, and the function is called on the kernel side. |
A Nanokernel utility function that moves (copies) bytes in memory.
The function assumes that the addresses are aligned on word boundaries, and that the length value is a multiple of 4.
Parameters | |
---|---|
aTrg | The target address. |
aSrc | The source address. |
aLength | The number of bytes to be moved. |
Panic Codes | |
---|---|
USER | 91 In debug mode only, if aLength is not a multiple of 4, and the function is called on the user side. |
KERN-COMMON | 91 In debug mode only, if aLength is not a multiple of 4, and the function is called on the kernel side. |
USER | 92 In debug mode only, if aSrc is not aligned on a word boundary, and the function is called on the user side. |
KERN-COMMON | 92 In debug mode only, if aSrc is not aligned on a word boundary, and the function is called on the kernel side. |
USER | 93 In debug mode only, if aTrg is not aligned on a word boundary, and the function is called on the user side. |
KERN-COMMON | 93 In debug mode only, if aTrg is not aligned on a word boundary, and the function is called on the kernel side. |
A Nanokernel utility function that sets all of the specified number of bytes to the specified fill value.
Parameters | |
---|---|
aTrg | The start address. |
aValue | The fill value (the first or junior byte). |
aLength | The number of bytes to be set. |
T | Min | ( | T | aLeft, |
T | aRight | |||
) | [inline] |
Returns the smaller of two values.
Parameters | |
---|---|
aLeft | The first value to be compared. |
aRight | The second value to be compared. |
T | Min | ( | T | aLeft, |
TUint | aRight | |||
) | [inline] |
Returns the smaller of two objects, where the right hand object is a treated as a TInt for the purpose of comparison.
Parameters | |
---|---|
aLeft | The first value to be compared. |
aRight | The second value to be compared. |
T | Max | ( | T | aLeft, |
T | aRight | |||
) | [inline] |
Returns the larger of two values.
Parameters | |
---|---|
aLeft | The first value to be compared. |
aRight | The second value to be compared. |
T | Max | ( | T | aLeft, |
TUint | aRight | |||
) | [inline] |
Returns the larger of two objects, where the right hand object is a treated as a TInt for the purpose of comparison.
Parameters | |
---|---|
aLeft | The first value to be compared. |
aRight | The second value to be compared. |
T | Abs | ( | T | aVal | ) | [inline] |
Returns an absolute value.
Parameters | |
---|---|
aVal | The source value. |
TBool | Rng | ( | T | aMin, |
T | aVal, | |||
T | aMax | |||
) | [inline] |
Determines whether a specified value lies within a defined range of values.
Parameters | |
---|---|
aMin | The lower value of the range. |
aVal | The value to be compared. |
aMax | The higher value of the range. |
T * | PtrAdd | ( | T * | aPtr, |
S | aVal | |||
) | [inline] |
Adds a value to a pointer.
Parameters | |
---|---|
aPtr | Pointer to an object of type T. |
aVal | The value to be added. |
T * | PtrSub | ( | T * | aPtr, |
S | aVal | |||
) | [inline] |
Subtracts a value from a pointer.
Parameters | |
---|---|
aPtr | Pointer to an object of type T. |
aVal | The value to be added. |
T | Align2 | ( | T | aValue | ) | [inline] |
Aligns the specified value onto a 2-byte boundary.
Parameters | |
---|---|
aValue | The value to be aligned. |
T | Align4 | ( | T | aValue | ) | [inline] |
Aligns the specified value onto a 4-byte boundary.
Parameters | |
---|---|
aValue | The value to be aligned. |
typedef TDes16Overflow | TDesOverflow |
Defines a build-independent descriptor overflow handler.
A 16-bit build variant is generated for a Unicode, non-kernel mode build.
A build-independent type should always be used unless an explicit 8-bit or 16-bit type is required.
See also: TDes8Overflow TDes16Overflow
typedef TBufCBase16 | TBufCBase |
_LIT | ( | KNullDesC | , |
"" | |||
) |
Defines an empty or null literal descriptor.
This is the build independent form. An 8 bit build variant is generated for a non-Unicode build; a 16 bit build variant is generated for a Unicode build.
_LIT8 | ( | KNullDesC8 | , |
"" | |||
) |
Defines an empty or null literal descriptor for use with 8-bit descriptors.
_LIT16 | ( | KNullDesC16 | , |
"" | |||
) |
Defines an empty or null literal descriptor for use with 16-bit descriptors
typedef TBuf< KMaxExitCategoryName > | TExitCategoryName |
Defines a modifiable buffer descriptor to contain the category name identifying the cause of thread or process termination. The buffer takes a maximum length of KMaxExitCategoryName.
See also: RThread::ExitCategory RThread::ExitCategory
typedef TBuf< KMaxFileName > | TFileName |
A buffer that can contain the name of a file. The name can have a maximum length of KMaxFileName (currently 256 but check the definition of KMaxFileName).
See also: KMaxFileName
A buffer that can contain the name of a path. The name can have a maximum length of KMaxPath (currently 256 but check the definition of KMaxPath).
See also: KMaxPath
typedef TBuf< KMaxUidName > | TUidName |
Defines a modifiable buffer descriptor for the text form of the UID. The descriptor has a maximum length of KMaxUidName and is used to contain the standard text format returned by the function TUid::Name().
See also: TUid::Name
typedef void(OnlyCreateWithNull::* | __NullPMF |
TBool | operator== | ( | RMessagePtr2 | aLeft, |
RMessagePtr2 | aRight | |||
) | [inline] |
TBool | operator!= | ( | RMessagePtr2 | aLeft, |
RMessagePtr2 | aRight | |||
) | [inline] |
typedef TBuf8< KMaxMediaPassword > | TMediaPassword |
Defines an 8-bit modifiable buffer descriptor to contain passwords when dealing with password security support in a file server session.
The descriptor takes a maximum length of KMaxMediaPassword.
See also: KMaxMediaPassword
const TUint | KScFlagBufOffsetListInUse |
A configuration flag for the shared chunk buffer configuration class (used by the multimedia device drivers). This being set signifies that a buffer offset list follows the buffer configuration class. This list holds the offset of each buffer.
const TUint | KScFlagUseGuardPages |
A configuration flag for the shared chunk buffer configuration class (used by the multimedia device drivers). This being set is a suggestion that the shared chunk should be configured leaving guard pages around each buffers.
const TInt | KMaxSecurityPolicySize |
Maximum size of any future extension to TSecurityPolicy
typedef TPckgBuf< TSecurityPolicy > | TSecurityPolicyBuf |
Provides a TPkcgBuf wrapper for a descriptorised TSecurityPolicy. This a suitable container for passing a security policy across IPC.
A macro to cast a TCapability to a TUint8.
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning will be produced which includes the label "__invalid_capability_value"
A macro to construct a TUint32 from four TUint8s. The TUint32 is in BigEndian ordering useful for class layout rather than number generation.
Macro for compile-time initialisation of a security policy object that always fails. That is, checks against this policy will always fail, irrespective of the security attributes of the item being checked.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
Macro for compile-time definition of a security policy object that always fails. That is, checks against this policy will always fail, irrespective of the security attributes of the item being checked.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
Macro for compile-time initialisation of a security policy object that always passes. That is, checks against this policy will always pass, irrespective of the security attributes of the item being checked.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
Macro for compile-time definition of a security policy object that always passes. That is, checks against this policy will always pass, irrespective of the security attributes of the item being checked.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
Macro for compile-time initialisation of a security policy object The policy will check for seven capabilities.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning will be produced which includes the label "__invalid_capability_value"
Macro for compile-time definition of a security policy object The policy will check for seven capabilities.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning will be produced which includes the label "__invalid_capability_value"
Macro for compile-time initialisation of a security policy object The policy will check for six capabilities.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning will be produced which includes the label "__invalid_capability_value"
Macro for compile-time definition of a security policy object The policy will check for six capabilities.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning will be produced which includes the label "__invalid_capability_value"
Macro for compile-time initialisation of a security policy object The policy will check for five capabilities.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning will be produced which includes the label "__invalid_capability_value"
Macro for compile-time definition of a security policy object The policy will check for five capabilities.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning will be produced which includes the label "__invalid_capability_value"
Macro for compile-time initialisation of a security policy object The policy will check for four capabilities.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning will be produced which includes the label "__invalid_capability_value"
Macro for compile-time definition of a security policy object The policy will check for four capabilities.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning will be produced which includes the label "__invalid_capability_value"
Macro for compile-time initialisation of a security policy object The policy will check for three capabilities.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning will be produced which includes the label "__invalid_capability_value"
Macro for compile-time definition of a security policy object The policy will check for three capabilities.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning will be produced which includes the label "__invalid_capability_value"
Macro for compile-time initialisation of a security policy object The policy will check for two capabilities.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning will be produced which includes the label "__invalid_capability_value"
Macro for compile-time definition of a security policy object The policy will check for two capabilities.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning will be produced which includes the label "__invalid_capability_value"
Macro for compile-time initialisation of a security policy object The policy will check for one capability.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning will be produced which includes the label "__invalid_capability_value"
Macro for compile-time definition of a security policy object The policy will check for one capability.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning will be produced which includes the label "__invalid_capability_value"
Macro for compile-time initialisation of a security policy object The policy will check for a secure ID and three capabilities.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning be produced which includes the label "__invalid_capability_value"
Macro for compile-time definition of a security policy object The policy will check for a secure ID and three capabilities.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning be produced which includes the label "__invalid_capability_value"
Macro for compile-time initialisation of a security policy object The policy will check for a secure ID and two capabilities.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning be produced which includes the label "__invalid_capability_value"
Macro for compile-time definition of a security policy object The policy will check for a secure ID and two capabilities.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning be produced which includes the label "__invalid_capability_value"
Macro for compile-time initialisation of a security policy object The policy will check for a secure ID and one capability.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning be produced which includes the label "__invalid_capability_value"
Macro for compile-time definition of a security policy object The policy will check for a secure ID and one capability.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning be produced which includes the label "__invalid_capability_value"
Macro for compile-time initialisation of a security policy object The policy will check for a secure ID.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
Macro for compile-time definition of a security policy object The policy will check for a secure ID.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
Macro for compile-time initialisation of a security policy object The policy will check for a vendor ID and three capabilities.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning be produced which includes the label "__invalid_capability_value"
Macro for compile-time definition of a security policy object The policy will check for a vendor ID and three capabilities.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning be produced which includes the label "__invalid_capability_value"
Macro for compile-time initialisation of a security policy object The policy will check for a vendor ID and two capabilities.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning be produced which includes the label "__invalid_capability_value"
Macro for compile-time definition of a security policy object The policy will check for a vendor ID and two capabilities.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning be produced which includes the label "__invalid_capability_value"
Macro for compile-time initialisation of a security policy object The policy will check for a vendor ID and one capability.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning be produced which includes the label "__invalid_capability_value"
Macro for compile-time definition of a security policy object The policy will check for a vendor ID and one capability.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
If an invlid capability value is specified then, dependant on the compiler, a compile time error or warning be produced which includes the label "__invalid_capability_value"
Macro for compile-time initialisation of a security policy object The policy will check for a vendor ID.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
Macro for compile-time definition of a security policy object The policy will check for a vendor ID.
The object declared has an implicit conversion to const TSecurityPolicy&. Taking the address of the object will return a const TSecurityPolicy*. Explicit conversion to const TSecurityPolicy& may be effected by using the function call operator n().
typedef TBuf8< 64 > | TMediaSerialNumber |
typedef TProcessMemoryInfo | TModuleMemoryInfo |
Defines a more useful synonym for TProcessMemoryInfo.
typedef TBool(* | TGeneralIdentityRelation |
Defines a function type used by a TIdentityRelation object.
A function of this type implements an algorithm for determining whether two objects match.
See also: TIdentityRelation
typedef TInt(* | TGeneralLinearOrder |
Defines a function type used by a TLinearOrder object
A function of this type implements an algorithm that determines the order of two objects.
See also: TLinearOrder
Enumerator | Value | Description |
---|---|---|
EArrayFindMode_Any | 0 |
Indicates that any element in a block of duplicate elements can be returned by a search function. Note that using this mode, there can be no guarantee that the element returned by the search functions will be the same if the size of the array changes between successive calls to those functions. |
EArrayFindMode_First | 1 |
Indicates that the first element in a block of duplicate elements is returned. |
EArrayFindMode_Last | 2 |
Indicates that the first element after the last element in a block of duplicate elements is returned. |
EArrayFindMode_Limit | 3 |
Executes the set of C++ statements _s under a trap harness.
Use this macro as a C++ statement.
_r must be a TInt which has already been declared; if any of the C++ statements _s leaves, then the leave code is returned in _r, otherwise _r is set to KErrNone.
_s can consist of multiple C++ statements; in theory, _s can consist of any legal C++ code but in practice, such statements consist of simple function calls, e.g. Foo() or an assignment of some value to the result of a function call, e.g. functionValue=GetFoo().
A cleanup stack is constructed for the set of C++ statements _s. If any function in _s leaves, objects pushed to the cleanup stack are cleaned-up. In addition, if any of the C++ statements in _s leaves, then remaining C++ code in _s is not executed and any variables which are assigned within that remaining code are not defined.
See also: TRAPD
Executes the set of C++ statements _s under a trap harness.
Use this macro in the same way as you would TRAP, except that the variable _r is defined as part of the macro (and is therefore valid for the rest of the block in which the macro occurs). Often, this saves a line of code.
See also: TRAP
Executes the set of C++ statements _s under a trap harness. Any leave code generated is ignored.
Use this macro as a C++ statement.
TInt x; TRAP(x,_s)or
TRAPD(x,_s)where the value in 'x' is not used by any subsequent code.
_s can consist of multiple C++ statements; in theory, _s can consist of any legal C++ code but in practice, such statements consist of simple function calls, e.g. Foo() or an assignment of some value to the result of a function call, e.g. functionValue=GetFoo().
A cleanup stack is constructed for the set of C++ statements _s. If any function in _s leaves, objects pushed to the cleanup stack are cleaned-up. In addition, if any of the C++ statements in _s leaves, then remaining C++ code in _s is not executed and any variables which are assigned within that remaining code are not defined.
GLREF_C void | operator delete | ( | TAny * | aPtr | ) |
GLREF_C void | operator delete[] | ( | TAny * | aPtr | ) |
A set of values that can be logically or'd together to control how a RFileMap is opened.
Enumerator | Value | Description |
---|---|---|
EFileMapWrite | 0x00000001 |
Open a writable mapping to the file. When EFileMapWrite is specified it will be possible to write to the file by writing to the addresses mapped by the RFileMap. |
EFileMapRemovableMedia | 0x00000002 |
Open a mapping to a file stored on removable media. When EFileMapRemovableMedia is specified files stored on removable media can be memory mapped. If this is not specified then it is not possible to open files stored on removable media. This includes logically removable media, not just physically removable, e.g. files stored on internal eMMC drive which may be removed when USB mass storage mode is active. Before setting EFileMapRemovableMedia the designer must consider how to cope if the media the file is stored on is removed as any access to a file mapping on removable media may result in the thread panicking. |
EFileMapInvalidMask | ~(EFileMapRemovableMedia | EFileMapWrite) |
A mask used when validating a TFileMapMode bitmask. |
A set of values specifying which global data elements should be updated/read.
See also: User::GetGlobalData Kern::SetGlobalData Kern::GetGlobalData
Enumerator | Value | Description |
---|---|---|
EGlobalDataOstFlag | 0 | The global enable flag for open system tracing (OST). |
EGlobalDataTypeEnd | . This must always be last. |