-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[kernel][bsp][HUST_CSE]:设计新的消息接收函数,可以返回消息的实际大小 #7256
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
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
直接用rt_mq_recv函数即可,返回值改成rt_ssize_t >=0表示正确并返回实际长度, <0返回错误码 |
rt_size_t 是 unsigned long 类型 |
不是rt_size_t 是rt_ssize_t,两个s。 rt_ssize_t是有符号类型,在4.1.1版本之后新加的一个,就是为了这种即返回长度又可能返回错误码的情况准备的 |
mysterywolf
requested changes
Apr 16, 2023
mysterywolf
reviewed
Apr 16, 2023
@Guozhanxin 郭老师麻烦review一下这个PR呗 我觉得没啥问题了 |
mysterywolf
requested changes
May 24, 2023
请往我邮箱里随便发点什么 [email protected] |
Guozhanxin
reviewed
May 24, 2023
Guozhanxin
approved these changes
Jun 4, 2023
mysterywolf
approved these changes
Jun 5, 2023
mysterywolf
requested changes
Jun 6, 2023
mysterywolf
reviewed
Jun 6, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
BSP
in progress
PR/issue in progress.
Kernel
PR has src relate code
University: HUST IoTS&P Lab
华中科技大学网络空间安全学院
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
cloese #5730
拉取/合并请求描述:(PR description)
[
为什么提交这份PR (why to submit this PR)
消息队列接口设计不合理,rt_mq_recv不能传出消息的实际大小
你的解决方案是什么 (what is your solution)
编写一个新的函数可以返回消息的实际大小
在什么测试环境下测试通过 (what is the test environment)
ALL
]
当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:
#if 0
代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up