mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
OS modules: Add basic procfs support. A module registry that will eventually be used to support lsmod
This commit is contained in:
+2
-2
@@ -28,7 +28,7 @@
|
||||
"getenv","stdlib.h","!defined(CONFIG_DISABLE_ENVIRON)","FAR char*","FAR const char*"
|
||||
"getpid","unistd.h","","pid_t"
|
||||
"getsockopt","sys/socket.h","CONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)","int","int","int","int","FAR void*","FAR socklen_t*"
|
||||
"insmod","nuttx/module.h",defined(CONFIG_MODULE),"int","FAR struct module_s *"
|
||||
"insmod","nuttx/module.h",defined(CONFIG_MODULE),"int","FAR const char *","FAR const struct symtab_s *","int"
|
||||
"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"
|
||||
"listen","sys/socket.h","CONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)","int","int","int"
|
||||
@@ -98,7 +98,7 @@
|
||||
"rename","stdio.h","CONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT)","int","FAR const char*","FAR const char*"
|
||||
"rewinddir","dirent.h","CONFIG_NFILE_DESCRIPTORS > 0","void","FAR DIR*"
|
||||
"rmdir","unistd.h","CONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT)","int","FAR const char*"
|
||||
"rmmod","nuttx/module.h",defined(CONFIG_MODULE),"int","FAR struct module_s *"
|
||||
"rmmod","nuttx/module.h",defined(CONFIG_MODULE),"int","FAR const char *"
|
||||
"sched_getparam","sched.h","","int","pid_t","struct sched_param*"
|
||||
"sched_getscheduler","sched.h","","int","pid_t"
|
||||
"sched_getstreams","nuttx/sched.h","CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NFILE_STREAMS > 0","FAR struct streamlist*"
|
||||
|
||||
|
@@ -111,7 +111,7 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert)
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_MODULE
|
||||
SYSCALL_LOOKUP(insmod, 1, STUB_insmod)
|
||||
SYSCALL_LOOKUP(insmod, 3, STUB_insmod)
|
||||
SYSCALL_LOOKUP(rmmod, 1, STUB_rmmod)
|
||||
#endif
|
||||
|
||||
|
||||
@@ -112,7 +112,8 @@ 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 STUB_insmod(int nbr, uintptr_t parm1, uintptr_t parm2,
|
||||
uintptr_t parm3);
|
||||
uintptr_t STUB_rmmod(int nbr, uintptr_t parm1);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user