Calling DLB_TALP_Attach() from outside calls shmem_cpuinfo_ext__init() and shmem_procinfo_ext__init(). They both call open_shmem() -> shmem_init() -> shm_open()+ ftruncate(). This creates the segment even when it does not exist.
Perhaps something similar to what is done in DLB_DROM_PreInit() (calls shmem_procinfo_ext__preinit()) to check for its existence would be helpful. Or, it can be checked from /dev/shm as well.
Calling
DLB_TALP_Attach()from outside callsshmem_cpuinfo_ext__init()andshmem_procinfo_ext__init(). They both callopen_shmem()->shmem_init()->shm_open()+ftruncate(). This creates the segment even when it does not exist.Perhaps something similar to what is done in
DLB_DROM_PreInit()(callsshmem_procinfo_ext__preinit()) to check for its existence would be helpful. Or, it can be checked from/dev/shmas well.