nuttx/syscall: export nxsem_getprioceiling and nxsem_setprioceiling via syscall
Signed-off-by: makejian <makejian@xiaomi.com>
This commit is contained in:
parent
ca45ad69bd
commit
e8a890ef42
|
@ -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
|
||||
|
|
|
@ -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})
|
||||
|
|
|
@ -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 *"
|
||||
|
|
Can't render this file because it has a wrong number of fields in line 2.
|
Loading…
Reference in New Issue