nuttx/syscall: export nxsem_getprioceiling and nxsem_setprioceiling via syscall

Signed-off-by: makejian <makejian@xiaomi.com>
This commit is contained in:
makejian
2024-10-08 20:42:35 +08:00
committed by Xiang Xiao
parent ca45ad69bd
commit e8a890ef42
3 changed files with 8 additions and 1 deletions
+5
View File
@@ -88,6 +88,11 @@ SYSCALL_LOOKUP(nxsem_wait, 1)
SYSCALL_LOOKUP(nxsem_set_protocol, 2)
#endif
#ifdef CONFIG_PRIORITY_PROTECT
SYSCALL_LOOKUP(nxsem_setprioceiling, 3)
SYSCALL_LOOKUP(nxsem_getprioceiling, 2)
#endif
/* Named semaphores */
#ifdef CONFIG_FS_NAMED_SEMAPHORES
+1 -1
View File
@@ -37,7 +37,7 @@ if(CONFIG_FS_NAMED_SEMAPHORES)
endif()
if(CONFIG_PRIORITY_PROTECT)
list(APPEND CSRCS sem_getprioceiling.c sem_setprioceiling.c)
list(APPEND SRCS sem_getprioceiling.c sem_setprioceiling.c)
endif()
target_sources(c PRIVATE ${SRCS})
+2
View File
@@ -88,9 +88,11 @@
"nxsem_clockwait","nuttx/semaphore.h","","int","FAR sem_t *","clockid_t","FAR const struct timespec *"
"nxsem_close","nuttx/semaphore.h","defined(CONFIG_FS_NAMED_SEMAPHORES)","int","FAR sem_t *"
"nxsem_destroy","nuttx/semaphore.h","","int","FAR sem_t *"
"nxsem_getprioceiling","nuttx/semaphore.h","defined(CONFIG_PRIORITY_PROTECT)","int","FAR const sem_t *","FAR int *"
"nxsem_open","nuttx/semaphore.h","defined(CONFIG_FS_NAMED_SEMAPHORES)","int","FAR sem_t **","FAR const char *","int","...","mode_t","unsigned int"
"nxsem_post","nuttx/semaphore.h","","int","FAR sem_t *"
"nxsem_set_protocol","nuttx/semaphore.h","defined(CONFIG_PRIORITY_INHERITANCE)","int","FAR sem_t *","int"
"nxsem_setprioceiling","nuttx/semaphore.h","defined(CONFIG_PRIORITY_PROTECT)","int","FAR sem_t *","int","FAR int *"
"nxsem_timedwait","nuttx/semaphore.h","","int","FAR sem_t *","FAR const struct timespec *"
"nxsem_trywait","nuttx/semaphore.h","","int","FAR sem_t *"
"nxsem_unlink","nuttx/semaphore.h","defined(CONFIG_FS_NAMED_SEMAPHORES)","int","FAR const char *"
1 _assert assert.h void FAR const char * int FAR const char * FAR void *
88 nxsem_clockwait nuttx/semaphore.h int FAR sem_t * clockid_t FAR const struct timespec *
89 nxsem_close nuttx/semaphore.h defined(CONFIG_FS_NAMED_SEMAPHORES) int FAR sem_t *
90 nxsem_destroy nuttx/semaphore.h int FAR sem_t *
91 nxsem_getprioceiling nuttx/semaphore.h defined(CONFIG_PRIORITY_PROTECT) int FAR const sem_t * FAR int *
92 nxsem_open nuttx/semaphore.h defined(CONFIG_FS_NAMED_SEMAPHORES) int FAR sem_t ** FAR const char * int ...
93 nxsem_post nuttx/semaphore.h int FAR sem_t *
94 nxsem_set_protocol nuttx/semaphore.h defined(CONFIG_PRIORITY_INHERITANCE) int FAR sem_t * int
95 nxsem_setprioceiling nuttx/semaphore.h defined(CONFIG_PRIORITY_PROTECT) int FAR sem_t * int FAR int *
96 nxsem_timedwait nuttx/semaphore.h int FAR sem_t * FAR const struct timespec *
97 nxsem_trywait nuttx/semaphore.h int FAR sem_t *
98 nxsem_unlink nuttx/semaphore.h defined(CONFIG_FS_NAMED_SEMAPHORES) int FAR const char *