Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
RT-Thread一般讨论
rt smart 系统调用函数功能缺少?
发布于 2022-02-27 12:49:06 浏览:905
订阅该版
rt smart的系统调用提供了如下函数的系统调用。 ```c const static void* func_table[] = { (void *)sys_exit, /* 01 */ (void *)sys_read, (void *)sys_write, (void *)sys_lseek, (void *)sys_open, /* 05 */ (void *)sys_close, (void *)sys_ioctl, (void *)sys_fstat, (void *)sys_poll, (void *)sys_nanosleep, /* 10 */ (void *)sys_gettimeofday, (void *)sys_settimeofday, (void *)sys_exec, (void *)sys_kill, (void *)sys_getpid, /* 15 */ (void *)sys_getpriority, (void *)sys_setpriority, (void *)sys_sem_create, (void *)sys_sem_delete, (void *)sys_sem_take, /* 20 */ (void *)sys_sem_release, (void *)sys_mutex_create, (void *)sys_mutex_delete, (void *)sys_mutex_take, (void *)sys_mutex_release, /* 25 */ (void *)sys_event_create, (void *)sys_event_delete, (void *)sys_event_send, (void *)sys_event_recv, (void *)sys_mb_create, /* 30 */ (void *)sys_mb_delete, (void *)sys_mb_send, (void *)sys_mb_send_wait, (void *)sys_mb_recv, (void *)sys_mq_create, /* 35 */ (void *)sys_mq_delete, (void *)sys_mq_send, (void *)sys_mq_urgent, (void *)sys_mq_recv, (void *)sys_thread_create, /* 40 */ (void *)sys_thread_delete, (void *)sys_thread_startup, (void *)sys_thread_self, (void *)sys_channel_open, (void *)sys_channel_close, /* 45 */ (void *)sys_channel_send, (void *)sys_channel_send_recv_timeout, (void *)sys_channel_reply, (void *)sys_channel_recv_timeout, (void *)sys_enter_critical, /* 50 */ (void *)sys_exit_critical, SYSCALL_USPACE(sys_brk), SYSCALL_USPACE(sys_mmap2), SYSCALL_USPACE(sys_munmap), #ifdef ARCH_MM_MMU SYSCALL_USPACE(sys_shmget), /* 55 */ SYSCALL_USPACE(sys_shmrm), SYSCALL_USPACE(sys_shmat), SYSCALL_USPACE(sys_shmdt), #else #ifdef RT_LWP_USING_SHM (void *)sys_shm_alloc, /* 55 */ (void *)sys_shm_free, (void *)sys_shm_retain, (void *)sys_notimpl, #else (void *)sys_notimpl, /* 55 */ (void *)sys_notimpl, (void *)sys_notimpl, (void *)sys_notimpl, #endif /* RT_LWP_USING_SHM */ #endif /* ARCH_MM_MMU */ (void *)sys_device_init, (void *)sys_device_register, /* 60 */ (void *)sys_device_control, (void *)sys_device_find, (void *)sys_device_open, (void *)sys_device_close, (void *)sys_device_read, /* 65 */ (void *)sys_device_write, (void *)sys_stat, (void *)sys_thread_find, SYSCALL_NET(sys_accept), SYSCALL_NET(sys_bind), /* 70 */ SYSCALL_NET(sys_shutdown), SYSCALL_NET(sys_getpeername), SYSCALL_NET(sys_getsockname), SYSCALL_NET(sys_getsockopt), SYSCALL_NET(sys_setsockopt), /* 75 */ SYSCALL_NET(sys_connect), SYSCALL_NET(sys_listen), SYSCALL_NET(sys_recv), SYSCALL_NET(sys_recvfrom), SYSCALL_NET(sys_send), /* 80 */ SYSCALL_NET(sys_sendto), SYSCALL_NET(sys_socket), SYSCALL_NET(sys_closesocket), SYSCALL_NET(sys_getaddrinfo), SYSCALL_NET(sys_gethostbyname2_r), /* 85 */ (void *)sys_notimpl, //(void *)network, (void *)sys_notimpl, //(void *)network, (void *)sys_notimpl, //(void *)network, (void *)sys_notimpl, //(void *)network, (void *)sys_notimpl, //(void *)network, /* 90 */ (void *)sys_notimpl, //(void *)network, (void *)sys_notimpl, //(void *)network, (void *)sys_notimpl, //(void *)network, #ifdef RT_USING_DFS (void *)sys_select, #else (void *)sys_notimpl, #endif (void *)sys_notimpl, //(void *)sys_hw_interrupt_disable, /* 95 */ (void *)sys_notimpl, //(void *)sys_hw_interrupt_enable, (void *)sys_tick_get, (void *)sys_exit_group, (void *)sys_notimpl, //(void *)rt_delayed_work_init, (void *)sys_notimpl, //(void *)rt_work_submit, /* 100 */ (void *)sys_notimpl, //(void *)rt_wqueue_wakeup, (void *)sys_thread_mdelay, (void *)sys_sigaction, (void *)sys_sigprocmask, (void *)sys_tkill, /* 105 */ (void *)sys_thread_sigprocmask, #ifdef ARCH_MM_MMU (void *)sys_cacheflush, (void *)sys_notimpl, (void *)sys_notimpl, #else (void *)sys_notimpl, (void *)sys_lwp_sighandler_set, (void *)sys_thread_sighandler_set, #endif (void *)sys_waitpid, /* 110 */ (void *)sys_timer_create, (void *)sys_timer_delete, (void *)sys_timer_start, (void *)sys_timer_stop, (void *)sys_timer_control, /* 115 */ (void *)sys_getcwd, (void *)sys_chdir, (void *)sys_unlink, (void *)sys_mkdir, (void *)sys_rmdir, /* 120 */ (void *)sys_getdents, (void *)sys_get_errno, #ifdef ARCH_MM_MMU (void *)sys_set_thread_area, (void *)sys_set_tid_address, #else (void *)sys_notimpl, (void *)sys_notimpl, #endif (void *)sys_access, /* 125 */ (void *)sys_pipe, (void *)sys_clock_settime, (void *)sys_clock_gettime, (void *)sys_clock_getres, SYSCALL_USPACE(sys_clone), /* 130 */ SYSCALL_USPACE(sys_futex), SYSCALL_USPACE(sys_pmutex), (void *)sys_dup, (void *)sys_dup2, (void *)sys_rename, /* 135 */ SYSCALL_USPACE(sys_fork), SYSCALL_USPACE(sys_execve), SYSCALL_USPACE(sys_vfork), (void *)sys_gettid, (void *)sys_prlimit64, /* 140 */ (void *)sys_getrlimit, (void *)sys_setrlimit, (void *)sys_setsid, (void *)sys_getrandom, }; ``` 从上面可以看出,关于线程操作,信号量操作,邮箱操作这些都没有提供在内核状态下的全部用户可调用的函数。线程缺少:rt_thread_suspend功能,信号量,缺少rt_sem_control函数功能,同样邮箱,事件等都缺少control函数的功能,导致原来在rt thread中的应用程序因为使用这些函数而无法移植到rt smart上面,这个问题如果解决? 这几天移植应用程序到rt smart上面发现这些函数都不具备,无法完成移植。
查看更多
2
个回答
默认排序
按发布时间排序
flashman2002
2022-02-27
这家伙很懒,什么也没写!
我查了一下,不仅是rt-smart,就是rt-thread标准版上也没有提供rt_xx_control的接口呀,文档见https://www.rt-thread.org/document/api/group__semaphore.html,何来无法移植一说?
bernard
2022-02-27
这家伙很懒,什么也没写!
rt_thread_suspend的功能都用了……这类之前就明确说过慎用,这块自然也不会再搬到用户态了。 ctrl的接口要看情况
撰写答案
登录
注册新账号
关注者
0
被浏览
905
关于作者
fhqmcu
个人博客:https://blog.csdn.net/fhqlongteng
提问
16
回答
60
被采纳
1
关注TA
发私信
相关问题
1
有关动态模块加载的一篇论文
2
最近的调程序总结
3
晕掉了,这么久都不见layer2的踪影啊
4
继续K9ii的历程
5
[GUI相关] FreeType 2
6
[GUI相关]嵌入式系统中文输入法的设计
7
20081101 RT-Thread开发者聚会总结
8
嵌入式系统基础
9
linux2.4.19在at91rm9200 上的寄存器设置
10
[转]基于嵌入式Linux的通用触摸屏校准程序
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
rt-thread 小内存算法源码分析
2
env中添加lvgl软件包后,keil编译包--c99错误
3
【NXP-MCXA153】 定时器驱动移植
4
GD32F450 看门狗驱动适配
5
【NXP-MCXA153】看门狗驱动移植
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
UART
WIZnet_W5500
ota在线升级
PWM
freemodbus
flash
cubemx
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
编译报错
Debug
rt_mq_消息队列_msg_queue
SFUD
keil_MDK
msh
ulog
C++_cpp
MicroPython
本月问答贡献
踩姑娘的小蘑菇
7
个答案
2
次被采纳
a1012112796
18
个答案
1
次被采纳
红枫
5
个答案
1
次被采纳
Ryan_CW
5
个答案
1
次被采纳
张世争
4
个答案
1
次被采纳
本月文章贡献
YZRD
3
篇文章
6
次点赞
catcatbing
3
篇文章
6
次点赞
lizimu
2
篇文章
11
次点赞
qq1078249029
2
篇文章
2
次点赞
xnosky
2
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部