linux - 什么是指针的唯一标识 (UID) 编号?

标签 linux pointers linux-kernel

在书中Linux Kernel Development by Robert Love ,我找到了以下行(Pg:100 - 101)。

The Linux kernel provides a simple and efficient map data structure, but it is not a general-purpose map. Instead, it is designed for one specific use case: mapping a unique identification number (UID) to a pointer.

在这种情况下,“指针的唯一标识号 (UID)”是什么意思?

最佳答案

What does "Unique identification number (UID) to a pointer" mean in this context?

没有。您错误地解析了句子。

The map data structure maps $X to $Y.

$X 是“唯一标识号 (UID)”。

$Y 是“指针”。

换句话说,“ map 数据结构”是一个字典,其中的键是 UID,值是指针。

关于linux - 什么是指针的唯一标识 (UID) 编号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47748132/

相关文章:

Linux进程和线程调度

c - 如何在迭代字符串指针后从 void 函数获取指针

c++ - 通过增量运算符访问类成员

android - 是否可以加载不同的内核并从内核模块跳入其中?

c - 通过调用内核模块写入proc文件/给参数

c - 如何将 malloc 与 madvise 一起使用并启用 MADV_DONTDUMP 选项

python - pyodbc 在 Python 中连接到 Sybase 数据库

c - 如何获取链接列表的指针地址,以便在删除 c 中的项目后可以在哈希表中正确设置它?

assembly - 如果我更改控制寄存器 cr0 的值会发生什么?

c - Linux/ARM 上 LDREX/STREX 可用性的运行时检测