Skip to content

Commit

Permalink
syscall: add missing epoll API
Browse files Browse the repository at this point in the history
Add missing epoll syscall API for kernelbuild
epoll_create, epoll_pwait, epoll_close

Signed-off-by: buxiasen <[email protected]>
  • Loading branch information
jasonbu authored and xiaoxiang781216 committed Jan 23, 2025
1 parent 758b3ba commit 7a94a45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/sys/syscall_lookup.h
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,11 @@ SYSCALL_LOOKUP(nanosleep, 2)

/* I/O event notification facility */

SYSCALL_LOOKUP(epoll_close, 1)
SYSCALL_LOOKUP(epoll_create, 1)
SYSCALL_LOOKUP(epoll_create1, 1)
SYSCALL_LOOKUP(epoll_ctl, 4)
SYSCALL_LOOKUP(epoll_pwait, 5)
SYSCALL_LOOKUP(epoll_wait, 4)

/* POSIX timers */
Expand Down
3 changes: 3 additions & 0 deletions syscall/syscall.csv
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@
"connect","sys/socket.h","defined(CONFIG_NET)","int","int","FAR const struct sockaddr *","socklen_t"
"dup","unistd.h","","int","int"
"dup2","unistd.h","","int","int","int"
"epoll_close","sys/epoll.h","","void","int"
"epoll_create","sys/epoll.h","","int","int"
"epoll_create1","sys/epoll.h","","int","int"
"epoll_ctl","sys/epoll.h","","int","int","int","int","FAR struct epoll_event *"
"epoll_pwait","sys/epoll.h","","int","int","FAR struct epoll_event *","int","int","FAR const sigset_t *"
"epoll_wait","sys/epoll.h","","int","int","FAR struct epoll_event *","int","int"
"eventfd","sys/eventfd.h","defined(CONFIG_EVENT_FD)","int","unsigned int","int"
"exec","nuttx/binfmt/binfmt.h","!defined(CONFIG_BINFMT_DISABLE) && !defined(CONFIG_BUILD_KERNEL)","int","FAR const char *","FAR char * const *","FAR char * const *","FAR const struct symtab_s *","int"
Expand Down

0 comments on commit 7a94a45

Please sign in to comment.