同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
This command is used to query information about kernel semaphores.
sem [ID_ / fulldata_]
Table 1 Parameters
Queries information about all the semaphores in use. The information to be printed includes SemID, Count, OriginalCount, Creater(TaskEntry), and LastAccessTime. |
If the parameters are not specified, this command displays the number of used semaphores and the total number of semaphores.
If the ID parameter is specified, semaphores of the specified ID are displayed.
The fulldata parameter depends on LOSCFG_DEBUG_SEMAPHORE. Before specifying the fulldata parameter, enable the Enable Semaphore Debugging configuration item using menuconfig.
Debug ---> Enable a Debug Version ---> Enable Debug LiteOS Kernel Resource ---> Enable Semaphore Debugging
Example 1: Enter sem fulldata.
Figure 1 Querying information about all semaphores in use
Table 2 Output description
NOTE:
- The ID value can be in decimal or hexadecimal format.
- When the ID value is within the range of [0, 1023], semaphore information of the specified ID is displayed. If the semaphore ID is not used, a message is displayed to inform you of this case. For other values, a message is displayed indicating that the input parameter is incorrect.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。