Skip to content
Snippets Groups Projects

Allow IPC table to be built in a simulation mode that allows the receiver to fill it

Merged Ezekiel Dohmen requested to merge ezekiel.dohmen/advligorts:export-ipc-info into master
1 file
+ 7
7
Compare changes
  • Side-by-side
  • Inline
+ 7
7
@@ -40,7 +40,7 @@ attach_shared_memory( const char* sysname )
g_epics_shm_handle = shmem_open(sysname_lower, SHMEM_EPICS_SIZE_MB);
if ( g_epics_shm_handle == NULL )
{
printl( "shmem_open(%s, %d) failed; ret = %d\n",
printl( "shmem_open(%s, %d) failed; ret = %p\n",
sysname, SHMEM_EPICS_SIZE_MB, g_epics_shm_handle );
return -1;
}
@@ -52,7 +52,7 @@ attach_shared_memory( const char* sysname )
g_tp_shm_handle = shmem_open(shm_name, SHMEM_TESTPOINT_SIZE_MB);
if ( g_tp_shm_handle == NULL )
{
printl( "shmem_open(%s, %d) failed; ret = %d\n",
printl( "shmem_open(%s, %d) failed; ret = %p\n",
shm_name, SHMEM_TESTPOINT_SIZE_MB, g_tp_shm_handle );
return -1;
}
@@ -64,7 +64,7 @@ attach_shared_memory( const char* sysname )
g_awg_shm_handle = shmem_open(shm_name, SHMEM_AWG_SIZE_MB);
if ( g_awg_shm_handle == NULL )
{
printl( "shmem_open(%s, %d) failed; ret = %d\n",
printl( "shmem_open(%s, %d) failed; ret = %p\n",
shm_name, SHMEM_AWG_SIZE_MB, g_awg_shm_handle );
return -1;
}
@@ -75,7 +75,7 @@ attach_shared_memory( const char* sysname )
g_ipc_shm_handle = shmem_open( SHMEM_IOMEM_NAME, SHMEM_IOMEM_SIZE_MB);
if ( g_ipc_shm_handle == NULL )
{
printl( "shmem_open(%s, %d) failed; ret = %d\n",
printl( "shmem_open(%s, %d) failed; ret = %p\n",
SHMEM_IOMEM_NAME, SHMEM_IOMEM_SIZE_MB, g_ipc_shm_handle );
return -1;
}
@@ -90,7 +90,7 @@ attach_shared_memory( const char* sysname )
g_daq_shm_handle = shmem_open(shm_name, DEFAULT_SHMEM_ALLOC_SIZE_MB);
if ( g_daq_shm_handle == NULL )
{
printl( "shmem_open(%s, %d) failed; ret = %d\n",
printl( "shmem_open(%s, %d) failed; ret = %p\n",
shm_name, DEFAULT_SHMEM_ALLOC_SIZE_MB, g_daq_shm_handle );
return -1;
}
@@ -102,7 +102,7 @@ attach_shared_memory( const char* sysname )
g_shmipc_shm_handle = shmem_open(SHMEM_IPCCOMMS_NAME, SHMEM_IPCCOMMS_SIZE_MB);
if ( g_shmipc_shm_handle == NULL )
{
printl( "shmem_open(%s, %d) failed; ret = %d\n",
printl( "shmem_open(%s, %d) failed; ret = %p\n",
SHMEM_IPCCOMMS_NAME, SHMEM_IPCCOMMS_SIZE_MB, g_shmipc_shm_handle );
return -1;
}
@@ -112,7 +112,7 @@ attach_shared_memory( const char* sysname )
g_io_shm_handle = shmem_open("virtual_io_space", DEFAULT_SHMEM_ALLOC_SIZE_MB);
if ( g_io_shm_handle == NULL )
{
printl( "shmem_open(%s, %d) failed; ret = %d\n",
printl( "shmem_open(%s, %d) failed; ret = %p\n",
"virtual_io_space", DEFAULT_SHMEM_ALLOC_SIZE_MB, g_io_shm_handle );
return -1;
}
Loading