embedded linux, application state freeze, relaunch

后端 未结 1 1312
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-25 07:11

We have an embedded application, now it requires its state to be saved and reloaded. Just like in PC games, where you save it before you have to go out and breath some fresh air

相关标签:
1条回答
  • 2021-01-25 07:47

    You want application checkpointing, so perhaps the Berkley Lab Checkpoint Restart library might help you.

    You could perhaps use the mmap(2) system call, if you are sure all the data has fixed addresses, etc...

    To know about your current memory segments and mappings, read (from your application) the /proc/self/maps file. There is also /proc/self/smaps etc. Learn more about proc(5), ie /proc/

    0 讨论(0)
提交回复
热议问题