init_ipc_shm() Whether it is only initialized once?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

init_ipc_shm() Whether it is only initialized once?

Jump to solution
557 Views
Ariel28
Contributor I

When developing IPCF functionality by creating multiple projects using C++ (or C) on the S32G A-cores, is the init_ipc_shm() function allowed to initialize the configured shared resources only once during runtime? If yes, what are the best architectural recommendations at the system level? My idea is to implement a self-starting service program that performs this initialization once during every device power-up

0 Kudos
Reply
1 Solution
545 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Ariel28 

Thanks for your post.

The init_ipc_shm() is called while the application is started, if the application is not crashed/exit, then it may not need to be called for the second time

Capture.JPG

As is shown above, if you performs this initialization once during every device power-up, then while the application exit/crashed, you may have to call the init_ipc_shm() manually before restarting the application if not resetting the device.

What we provided is the kernel module/libs, the user application design is specific according to different custom requirements, sorry that I do not see some formal recommendation related, I apologize.

 

BR

Chenyin

 

View solution in original post

0 Kudos
Reply
2 Replies
546 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Ariel28 

Thanks for your post.

The init_ipc_shm() is called while the application is started, if the application is not crashed/exit, then it may not need to be called for the second time

Capture.JPG

As is shown above, if you performs this initialization once during every device power-up, then while the application exit/crashed, you may have to call the init_ipc_shm() manually before restarting the application if not resetting the device.

What we provided is the kernel module/libs, the user application design is specific according to different custom requirements, sorry that I do not see some formal recommendation related, I apologize.

 

BR

Chenyin

 

0 Kudos
Reply
537 Views
Ariel28
Contributor I

If I have implemented multiple apps on core A, is it necessary for each app to call the init_ipc_shm() method once during startup for initialization? This is something I am eager to understand.

0 Kudos
Reply