Obtain the size of the shared memory segment Arguments: None
| Return Type | Function name | Arguments |
|---|---|---|
| uint32_t | hzShmem::Size | (void) |
Declared in file: hzProcess.h
Defined in file : hzProcess.cpp
Function Logic:
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 ;
}