-
Notifications
You must be signed in to change notification settings - Fork 27
docs: 更新infinirt文档虚存部分 #36
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Ceng <[email protected]>
Signed-off-by: Ceng <[email protected]>
infinirt/README.md
Outdated
| #### 映射虚拟内存 | ||
|
|
||
| ``` c++ | ||
| infiniStatus_t infinirtMapVirtualMem(void **mapped_ptr, infinirtVirtualMem_t vm, size_t offset, infinirtPhyMem_t phy_mem); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mapped_ptr这个参数有点冗余。讲清楚virtualmem_t要怎么转成可使用的void*就行了
infinirt/README.md
Outdated
| #### 解除虚拟内存映射 | ||
| ``` c++ | ||
| infiniStatus_t infinirtUnmapVirtualMem(infinirtVirtualMem_t vm, size_t offset); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
去掉offset,加上size
infinirt/README.md
Outdated
| #### 类型定义 | ||
| ``` c++ | ||
| typedef void *infinirtDeviceptr_t; // 设备指针类型 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
去掉infinirtDeviceptr_t infinirtVirtualMem_t,直接用void*
Signed-off-by: Ceng <[email protected]>
Signed-off-by: Ceng <[email protected]>
Signed-off-by: Ceng <[email protected]>
No description provided.