什么是vxWorks共享内存锚点?
在vxWorks内存映射中,有一个区域(位于vxWorks的加载地址下方)被描述为“共享内存锚点”。
它是干什么用的?
In the vxWorks memory map, there is an area (bellow the load address of vxWorks) which is described as the "shared memory anchor".
What is it used for?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在多个单板计算机插入公共背板(例如 VMEbus)的环境中,VxWorks 的 VxMP 变体向公共 VxWorks 对象添加了“本地”和“全局”属性。
例如,您可以有一个驻留在其中一台单板计算机上的“全局”消息队列,但可以从任何其他单板计算机(所有单板计算机都运行带有 VxMP 的 VxWorks)向该消息队列发送消息或从该消息队列接收消息。
为了实现这一壮举,每个单板计算机上都会标识一个“共享内存”区域,并且所有板都知道所有其他板的共享内存地址,并且它们通过这些共享内存区域(和特殊驱动程序)进行通信。
当每个板启动时,它必须发现其共享内存区域在哪里,因此该值称为“共享内存锚点”。
In an environment with multiple single-board computers plugged into a common backplane (such as VMEbus), the VxMP variant of VxWorks adds "local" and "global" properties to common VxWorks objects.
For example, you can have a "global" message queue that reside on one of those single-board computers but messages can be sent to and received from that message queue from any of the other single-board computers (all running VxWorks with VxMP).
To accomplish this feat, a "shared memory" area is identified on each single-board computer, and all boards know all other board's shared memory addresses, and they communicate through these shared memory areas (and special drivers).
When each board is booted, it must discover where its shared memory area is, hence this value, the "Shared Memory Anchor".