mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
Syscalls: Remove modsym() syscall. There is no reason why appication code could ever use symbolic information from a symbol within a kernel module. The modsym() interface is only meaningful within the kernel.
This commit is contained in:
@@ -38,7 +38,6 @@
|
||||
"mkfifo2","nuttx/drivers/drivers.h","defined(CONFIG_PIPES) && CONFIG_DEV_FIFO_SIZE > 0","int","FAR const char*","mode_t","size_t"
|
||||
"mmap","sys/mman.h","CONFIG_NFILE_DESCRIPTORS > 0","FAR void*","FAR void*","size_t","int","int","int","off_t"
|
||||
"modhandle","nuttx/module.h","defined(CONFIG_MODULE)","FAR void *","FAR const char *"
|
||||
"modsym","nuttx/module.h","defined(CONFIG_MODULE)","FAR const void *","FAR void *","FAR const char *"
|
||||
"mount","sys/mount.h","CONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT) && defined(CONFIG_FS_READABLE)","int","const char*","const char*","const char*","unsigned long","const void*"
|
||||
"mq_close","mqueue.h","!defined(CONFIG_DISABLE_MQUEUE)","int","mqd_t"
|
||||
"mq_getattr","mqueue.h","!defined(CONFIG_DISABLE_MQUEUE)","int","mqd_t","struct mq_attr *"
|
||||
|
||||
|
@@ -123,7 +123,6 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert)
|
||||
#ifdef CONFIG_MODULE
|
||||
SYSCALL_LOOKUP(insmod, 2, STUB_insmod)
|
||||
SYSCALL_LOOKUP(rmmod, 1, STUB_rmmod)
|
||||
SYSCALL_LOOKUP(modsym, 2, STUB_modsym)
|
||||
SYSCALL_LOOKUP(modhandle, 1, STUB_modhandle)
|
||||
#endif
|
||||
|
||||
|
||||
@@ -122,7 +122,6 @@ uintptr_t STUB_waitid(int nbr, uintptr_t parm1, uintptr_t parm2,
|
||||
#ifdef CONFIG_MODULE
|
||||
uintptr_t STUB_insmod(int nbr, uintptr_t parm1, uintptr_t parm2);
|
||||
uintptr_t STUB_rmmod(int nbr, uintptr_t parm1);
|
||||
uintptr_t STUB_modsym(int nbr, uintptr_t parm1);
|
||||
uintptr_t STUB_modhandle(int nbr, uintptr_t parm1, uintptr_t parm2);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user