linux - 使用hexdump检查/dev/mem时,为什么有些地址不见了?

标签 linux memory device

这是我使用的命令:

sudo hexdump -C/dev/mem |少

它转储的部分结果:

00000070  53 ff 00 f0 a4 f0 00 f0  c7 ef 00 f0 e0 ba 00 c0  |S...............|
00000080  ef 27 00 f0 ef 27 00 f0  ef 27 00 f0 ef 27 00 f0  |.'...'...'...'..|
*
00000100  99 1b 32 e7 01 e4 00 f0  65 f0 00 f0 e0 be 00 c0  |..2.....e.......|
00000110  ef 27 00 f0 ef 27 00 f0  ef 27 00 f0 ef 27 00 f0  |.'...'...'...'..|
*
00000180  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|

有趣的是 [0x00000120, 0x0000017f] 中的地址被忽略为“*”而不是我想看到的值。

据我所知,这些部分是 protected ,不被阅读,但为什么呢?还是我遗漏了什么?

最佳答案

hexdump 正在抑制重复行以使输出更易于阅读。

来自“man hexdump”页面:

-v      Cause hexdump to display all input data.  Without the -v option,
        any number of groups of output lines, which would be identical to
        the immediately preceding group of output lines (except for the
        input offsets), are replaced with a line comprised of a single
        asterisk.

关于linux - 使用hexdump检查/dev/mem时,为什么有些地址不见了?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13945192/

相关文章:

linux - 在 Linux 中创建和修改 VDI 磁盘镜像的内容

linux - Qemu 引导原始内核镜像(不是 ELF)

c# - WPF 每次打开和关闭窗口时增加内存

C memcpy() 一个函数

delphi - 使用 Delphi 检测 Windows 中何时安装卷

linux - Docker 为 Flask API 公开端口

linux - 如何将 Linux hugetlbfs 用于文件的共享内存映射?

c - 关于 BMP 文件。我如何写入/更改像素颜色? (在C中)

ruby - 理解 "/dev/video"输出

android - Google play 说我的应用排除了 0 个应用,但有些设备找不到它