kernel/eka/euser/us_ksvr.cpp
changeset 31 56f325a607ea
parent 15 4122176ea935
child 33 0173bcd7697c
equal deleted inserted replaced
15:4122176ea935 31:56f325a607ea
   420 
   420 
   421 
   421 
   422 @param aSize    The number of bytes committed to this chunk.
   422 @param aSize    The number of bytes committed to this chunk.
   423 @param aMaxSize The maximum size to which the reserved region of this chunk 
   423 @param aMaxSize The maximum size to which the reserved region of this chunk 
   424                 can grow.
   424                 can grow.
   425 @param aType    An enumeration whose enumerators define the ownership of this 
       
   426                 chunk handle. If not explicitly specified, EOwnerProcess is
       
   427                 taken as default.
       
   428 @see RChunk::CreateLocal()
   425 @see RChunk::CreateLocal()
   429 */
   426 */
   430 EXPORT_C void TChunkCreateInfo::SetNormal(TInt aInitialSize, TInt aMaxSize)
   427 EXPORT_C void TChunkCreateInfo::SetNormal(TInt aInitialSize, TInt aMaxSize)
   431 	{
   428 	{
   432 	iType = TChunkCreate::ENormal | TChunkCreate::EData;
   429 	iType = TChunkCreate::ENormal | TChunkCreate::EData;
   565 	iAttributes &= ~TChunkCreate::EPagingMask;
   562 	iAttributes &= ~TChunkCreate::EPagingMask;
   566 	if (aPaging == EPaged)
   563 	if (aPaging == EPaged)
   567 		iAttributes |= TChunkCreate::EPaged;
   564 		iAttributes |= TChunkCreate::EPaged;
   568 	if (aPaging == EUnpaged)
   565 	if (aPaging == EUnpaged)
   569 		iAttributes |= TChunkCreate::EUnpaged;
   566 		iAttributes |= TChunkCreate::EUnpaged;
       
   567 	}
       
   568 
       
   569 /**
       
   570 Sets the global chunk to be created to be read only. Only the creating process
       
   571 will be able to write to it, not other processes.
       
   572 
       
   573 Read-Only chunks are currently only available on the Flexible Memory Model.
       
   574 
       
   575 Chunk must be global.
       
   576 */
       
   577 EXPORT_C void TChunkCreateInfo::SetReadOnly()
       
   578 	{
       
   579 	iAttributes |= TChunkCreate::EReadOnly;
   570 	}
   580 	}
   571 
   581 
   572 
   582 
   573 EXPORT_C void TChunkCreateInfo::SetCache(TInt aMaxSize)
   583 EXPORT_C void TChunkCreateInfo::SetCache(TInt aMaxSize)
   574 	{
   584 	{
  1153 
  1163 
  1154 For example, to adjust, commit etc
  1164 For example, to adjust, commit etc
  1155 
  1165 
  1156 @param aFlags One of the values defined by TRestrictions.
  1166 @param aFlags One of the values defined by TRestrictions.
  1157 
  1167 
       
  1168 @return KErrNone if successful, otherwise another of the system error codes.
       
  1169 
  1158 @see RChunk::TRestrictions()
  1170 @see RChunk::TRestrictions()
  1159 */
  1171 */
  1160 	{
  1172 	{
  1161 	return Exec::ChunkSetRestrictions(iHandle,aFlags);
  1173 	return Exec::ChunkSetRestrictions(iHandle,aFlags);
  1162 	}
  1174 	}