Lines Matching refs:size
33 size_t GetPageAlignedSize(size_t size) in GetPageAlignedSize() argument
35 return (size + NN_OS_MEMORY_PAGE_SIZE - 1) & ~(NN_OS_MEMORY_PAGE_SIZE - 1); in GetPageAlignedSize()
59 void SharedMemoryBlock::Map(size_t size, bool readOnly) in Map() argument
63 NN_ALIGN_TASSERT_( size, NN_OS_MEMORY_PAGE_SIZE ); in Map()
66 uptr addr = detail::AllocateFromSharedMemorySpace(this, size); in Map()
96 Result SharedMemoryBlock::TryInitialize(size_t size, bool readOnly, bool otherReadOnly, bool noMap) in TryInitialize() argument
98 size = GetPageAlignedSize(size); in TryInitialize()
104 result = nn::svc::CreateMemoryBlock(&handle, NULL, size, myPermission, otherPermission); in TryInitialize()
110 Map(size, readOnly); in TryInitialize()
115 void SharedMemoryBlock::Initialize(size_t size, bool readOnly, bool otherReadOnly, bool noMap) in Initialize() argument
117 NN_ERR_THROW_FATAL(TryInitialize(size, readOnly, otherReadOnly, noMap)); in Initialize()
120 void SharedMemoryBlock::AttachAndMap(Handle handle, size_t size, bool readOnly) in AttachAndMap() argument
123 size = GetPageAlignedSize(size); in AttachAndMap()
126 Map(size, readOnly); in AttachAndMap()
162 void nnosSharedMemoryBlockAllocate(nnosSharedMemoryBlock* this_, size_t size, bool readOnly, bool o… in nnosSharedMemoryBlockAllocate() argument
164 new (this_) SharedMemoryBlock(size, readOnly, otherReadOnly, noMap); in nnosSharedMemoryBlockAllocate()