mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Squashed commit of the following:
syscalls/: Add syscall support for if_nametoindex() and if_indextoname()
net/: Update some comments.
This commit is contained in:
@@ -35,6 +35,8 @@
|
||||
"getpid","unistd.h","","pid_t"
|
||||
"getrandom","sys/random.h","defined(CONFIG_CRYPTO_RANDOM_POOL)","void","FAR void*","size_t"
|
||||
"getsockopt","sys/socket.h","CONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)","int","int","int","int","FAR void*","FAR socklen_t*"
|
||||
"if_indextoname","net/if.h","CONFIG_NETDEV_IFINDEX","FAR char *","unsigned int","FAR char *"
|
||||
"if_nametoindex","net/if.h","CONFIG_NETDEV_IFINDEX","unsigned int","FAR const char *"
|
||||
"insmod","nuttx/module.h","defined(CONFIG_MODULE)","FAR void *","FAR const char *","FAR const char *"
|
||||
"ioctl","sys/ioctl.h","!defined(CONFIG_LIBC_IOCTL_VARIADIC) && (CONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0)","int","int","int","unsigned long"
|
||||
"kill","signal.h","!defined(CONFIG_DISABLE_SIGNALS)","int","pid_t","int"
|
||||
|
||||
|
@@ -211,6 +211,10 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert)
|
||||
SYSCALL_LOOKUP(poll, 3, STUB_poll)
|
||||
SYSCALL_LOOKUP(select, 5, STUB_select)
|
||||
# endif
|
||||
# ifdef CONFIG_NETDEV_IFINDEX
|
||||
SYSCALL_LOOKUP(if_indextoname, 2, STUB_if_indextoname)
|
||||
SYSCALL_LOOKUP(if_nametoindex, 1, STUB_if_nametoindex)
|
||||
# endif
|
||||
# ifdef CONFIG_SERIAL_TERMIOS
|
||||
SYSCALL_LOOKUP(tcdrain, 1, STUB_tcdrain)
|
||||
# endif
|
||||
|
||||
@@ -206,11 +206,20 @@ uintptr_t STUB_poll(int nbr, uintptr_t parm1, uintptr_t parm2,
|
||||
uintptr_t STUB_select(int nbr, uintptr_t parm1, uintptr_t parm2,
|
||||
uintptr_t parm3, uintptr_t parm4, uintptr_t parm5);
|
||||
|
||||
/* Asynchronous I/O */
|
||||
|
||||
uintptr_t STUB_aio_read(int nbr, uintptr_t parm1);
|
||||
uintptr_t STUB_aio_write(int nbr, uintptr_t parm1);
|
||||
uintptr_t STUB_aio_fsync(int nbr, uintptr_t parm1, uintptr_t parm2);
|
||||
uintptr_t STUB_aio_cancel(int nbr, uintptr_t parm1, uintptr_t parm2);
|
||||
|
||||
/* Network interface indices */
|
||||
|
||||
uintptr_t STUB_if_indextoname(int nbr, uintptr_t parm1, uintptr_t parm2);
|
||||
uintptr_t STUB_if_nametoindex(int nbr, uintptr_t parm1);
|
||||
|
||||
/* Termios */
|
||||
|
||||
uintptr_t STUB_tcdrain(int nbr, uintptr_t parm1);
|
||||
|
||||
/* Board support */
|
||||
|
||||
Reference in New Issue
Block a user