Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme里关于vm_statistics_data_t的描述 #27

Open
xilin opened this issue Jun 1, 2021 · 0 comments
Open

Readme里关于vm_statistics_data_t的描述 #27

xilin opened this issue Jun 1, 2021 · 0 comments

Comments

@xilin
Copy link

xilin commented Jun 1, 2021

感谢分享,收获很大。

文章里有一段

读者可能会看到有些代码会使用 vm_statistics_data_t 结构体,但是这个结构体是32位机器的,随着 Apple 逐渐放弃对32位应用的支持,所以建议读者还是使用 vm_statistics64_data_t 64位的结构体。

但我看到14.5的头文件定义里

/* Used by all architectures */
typedef struct vm_statistics    *vm_statistics_t;
typedef struct vm_statistics    vm_statistics_data_t;

是不是实际上用vm_statistics_data_t更好一些?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant