Obtain the size of the shared memory segment Arguments: None

Return TypeFunction nameArguments
uint32_thzShmem::Size(void)

Declared in file: hzProcess.h
Defined in file : hzProcess.cpp

Function Logic:

0:START 1:items 2:Return shmCtl.shm_segsz

Function body:

uint32_t hzShmem::Size (void)
{
   //  Obtain the size of the shared memory segment
   //  
   //  Arguments: None
   //  Returns: Total shared segment size
   shmid_ds    shmCtl ;    //  For reading shared memory info
   shmctl(m_fd, IPC_STAT, &shmCtl) ;
   return shmCtl.shm_segsz ;
}