English 中文(简体)
LC: 创建可使用虚拟文档(如SPI记忆)
原标题:Linux: create mmap()able virtual file (e.g. SPI memory)

我有一套能够获取外部消费物价指数记忆的果实,我也希望获得外部记忆,以便我能够像正常记忆一样从方案获得。

如果我使用通常的微粒()在果园档案上重新铺设,那么我就只能看到一个装置记忆区,而不是其虚拟的果园。

是否允许我这样做?

TIA

最佳回答

如果特性装置驱动器提供了<代码>mmap执行,则该装置将发挥作用。 这可能是一个很好的理由:

Memory access instructions create memory transactions on the bus. An SPI memory is not addressable that way (although the SPI controller may use memory-mapped I/O, that s for its own register-level interface, not the memory content). You could build an SPI memory controller with a memory bus interface, I suppose, but you d lose the device-indepedence of the SPI standard.

可能播送一个记忆区(一页记忆,标明它无法进入,并处理出入违规事件(SIGBUS和SIGSEGV),但这会非常低效率。 有时,你们发现的是虚拟机器,但表现非常差。

问题回答

象你这样,需要某种动力,使记忆区域能够接触到通过注重特性的界面发出的指挥。 这很可能是简单直截了当的路障驱动器。





相关问题
Signed executables under Linux

For security reasons, it is desirable to check the integrity of code before execution, avoiding tampered software by an attacker. So, my question is How to sign executable code and run only trusted ...

encoding of file shell script

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1. Thanks

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/...

Good, free, easy-to-use C graphics libraries? [closed]

I was wondering if there were any good free graphics libraries for C that are easy to use? It s for plotting 2d and 3d graphs and then saving to a file. It s on a Linux system and there s no gnuplot ...

热门标签