readme
来自「Linux共享内存share memory通信机制的内核实现」· 代码 · 共 23 行
TXT
23 行
This directory contains a test to show the use of shared memory.It is a self contained, except for kvmem.h, directory that duplicates the production version with debugging print added.For testing, staying in this directory:- make- make hook- insmod rtai_shm- ./start (or "insmod kalloc" followed by "./itest &")- ./ctest- ./ctest- ./ctest ..... you can continue with ctest- ./stop (or "./ftest" followed by "rmmod kalloc")- rmmod rtai_shm- make cleanBy following what appears on the screen there should be a confirmation that itworks (or does not?)!The above sequence is for a correct use but it contains already duplicated andnot paired malloc/free call for testing reasons. You can try also what happens by scrambling the sequence. The idea is that you should not be able to rmmod rtai_shm till the areas are engaged.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?