diff -r 4122176ea935 -r 56f325a607ea kernel/eka/euser/us_ksvr.cpp --- a/kernel/eka/euser/us_ksvr.cpp Mon Dec 21 16:14:42 2009 +0000 +++ b/kernel/eka/euser/us_ksvr.cpp Wed Dec 23 11:43:31 2009 +0000 @@ -422,9 +422,6 @@ @param aSize The number of bytes committed to this chunk. @param aMaxSize The maximum size to which the reserved region of this chunk can grow. -@param aType An enumeration whose enumerators define the ownership of this - chunk handle. If not explicitly specified, EOwnerProcess is - taken as default. @see RChunk::CreateLocal() */ EXPORT_C void TChunkCreateInfo::SetNormal(TInt aInitialSize, TInt aMaxSize) @@ -569,6 +566,19 @@ iAttributes |= TChunkCreate::EUnpaged; } +/** +Sets the global chunk to be created to be read only. Only the creating process +will be able to write to it, not other processes. + +Read-Only chunks are currently only available on the Flexible Memory Model. + +Chunk must be global. +*/ +EXPORT_C void TChunkCreateInfo::SetReadOnly() + { + iAttributes |= TChunkCreate::EReadOnly; + } + EXPORT_C void TChunkCreateInfo::SetCache(TInt aMaxSize) { @@ -1155,6 +1165,8 @@ @param aFlags One of the values defined by TRestrictions. +@return KErrNone if successful, otherwise another of the system error codes. + @see RChunk::TRestrictions() */ {