Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <e32std.h>
Link against: euser.lib

Struct TChunkCreateInfo

struct TChunkCreateInfo;

Description

This structure specifies the type and properties of the chunk to be created. It is passed as a parameter to the RChunk::Create(TChunkCreateInfo &) method.

Members

Defined in TChunkCreateInfo:


Construction and destruction


TChunkCreateInfo()

inline TChunkCreateInfo();

Description

Constructor which zeros all member data.


TChunkCreateInfo()

IMPORT_C TChunkCreateInfo();

Description

Default constructor.

This defaults the chunk to be created to be local, to have no attributes set and to use the default clear byte.

A local chunk is private to the process creating it and is not intended for access by other user processes.

[Top]


Member functions


SetNormal(TInt,TInt)

IMPORT_C void SetNormal(TInt aInitialSize, TInt aMaxSize);

Description

Sets the chunk to be created to have a committed region that always starts at the bottom of the reserved region.

Parameters

TInt aInitialSize

TInt aMaxSize

The maximum size to which the reserved region of this chunk can grow.

See also:


SetCode(TInt,TInt)

IMPORT_C void SetCode(TInt aInitialSize, TInt aMaxSize);

Description

Sets the chunk to be create to be user writable and to be marked by the kernel as containing code. This is can only be set on local chunks.

Parameters

TInt aInitialSize

The number of bytes committed to this chunk.

TInt aMaxSize

The maximum size to which the reserved region of this chunk can grow.

See also:


SetDoubleEnded(TInt,TInt,TInt)

IMPORT_C void SetDoubleEnded(TInt aInitialBottom, TInt aInitialTop, TInt aMaxSize);

Description

Sets the chunk to be created to have a commited region that that can be any contiguous subset of the reserved region.

Parameters

TInt aInitialBottom

The offset of the bottom of the new committed region from the base of the chunk's reserved region.

TInt aInitialTop

The offset of the top of the new committed region from the base of the chunk's reserved region.

TInt aMaxSize

The maximum size to which the reserved region of this chunk can grow.

See also:


SetDisconnected(TInt,TInt,TInt)

IMPORT_C void SetDisconnected(TInt aInitialBottom, TInt aInitialTop, TInt aMaxSize);

Description

Set the chunk to be created to have a committed region consisting of an arbitrary set of MMU pages within the reserved region.

Parameters

TInt aInitialBottom

The offset of the bottom of the new committed region from the base of the chunk's reserved region.

TInt aInitialTop

The offset of the top of the new committed region from the base of the chunk's reserved region.

TInt aMaxSize

The maximum size to which the reserved region of this chunk can grow.

See also:


SetOwner(TOwnerType)

IMPORT_C void SetOwner(TOwnerType aType);

Description

Sets the owner of the chunk to be created.

Parameters

TOwnerType aType

The owner of the chunk to be created.


SetGlobal(const TDesC &)

IMPORT_C void SetGlobal(const TDesC &aName);

Description

Sets the chunk to be created to be global, i.e. it is potentially visible to all processes and is intended for access by other user processes.

Parameters

const TDesC16 &aName

A reference to a descriptor containing the name to be assigned to the global chunk. The length of the descriptor must be no greater than that allowed for a TKName type.


SetClearByte(TUint8)

IMPORT_C void SetClearByte(TUint8 aClearByte);

Description

Sets the byte value that all memory committed to the chunk will be cleared to.

Parameters

TUint8 aClearByte

[Top]


Member enumerations


Enum TType

TType

Description

Enumeration representing the type of chunk to be created.

ESharedKernelSingle

A chunk which may only be opened by one user side process at a time. Chunks of this type are slightly more efficient than the ESharedKernelMultiple type when used on the Moving Memory Model.

ESharedKernelMultiple

A chunk which may be opened by any number of user side processes.

[Top]


Member data


iType

TType iType;

Description

The chunk type to be created.

See also:


iMapAttr

TUint32 iMapAttr;

Description

Caching attributes for the chunks memory.

This is a value constructed from the TMappingAttributes values. E.g. EMapAttrFullyBlocking (no caching) or EMapAttrCachedMax (full caching).

Note that if the MMU doesn't support the requested attributes then a lesser cached attribute will be used. The actual value used is returned in aMapAttr of Kern::ChunkCreate(const TChunkCreateInfo &,DChunk *&,TLinAddr &,TUint32 &)


iOwnsMemory

TUint8 iOwnsMemory;

Description

Set to true if the chunk is to own its committed memory. In which case all memory committed to the chunk will come from the system's free pool and will be returned there when the chunk is destroyed.


iDestroyedDfc

TDfc * iDestroyedDfc;

Description

Pointer to a DFC which will be queued on destruction of chunk.