Files
nuttx/syscall/syscall.csv
T
Gregory Nutt 2def8035db sched/sched/sched_getcpu.c: Implement non-standard interface.
If SMP is enabled this function will return the number of the CPU that the thread is running on.  This is non-standard but follows GLIBC if __GNU_SOURCE is enabled.  The returned CPU number is, however, worthless since it returns the CPU number of the CPU that was executing the task when the function was called.  The application can never know the true CPU number of the CPU tht it is running on since that value is volatile and change change at any time.
2020-01-31 20:25:15 +00:00

16 KiB

1_exitunistd.hvoidint
2adjtimesys/time.hdefined(CONFIG_CLOCK_TIMEKEEPING)intFAR const struct timeval *FAR struct timeval *
3aio_cancelaio.hdefined(CONFIG_FS_AIO)intintFAR struct aiocb *
4aio_fsyncaio.hdefined(CONFIG_FS_AIO)intintFAR struct aiocb *
5aio_readaio.hdefined(CONFIG_FS_AIO)intFAR struct aiocb *
6aio_writeaio.hdefined(CONFIG_FS_AIO)intFAR struct aiocb *
7acceptsys/socket.hdefined(CONFIG_NET)intintstruct sockaddr*socklen_t*
8atexitstdlib.hdefined(CONFIG_SCHED_ATEXIT)intvoid (*)(void)
9bindsys/socket.hdefined(CONFIG_NET)intintFAR const struct sockaddr*socklen_t
10boardctlsys/boardctl.hdefined(CONFIG_LIB_BOARDCTL)intunsigned intuintptr_t
11clearenvstdlib.h!defined(CONFIG_DISABLE_ENVIRON)int
12clocktime.hclock_t
13clock_getrestime.hintclockid_tstruct timespec*
14clock_gettimetime.hintclockid_tstruct timespec*
15clock_nanosleeptime.hintclockid_tintFAR const struct timespec *FAR struct timespec*
16clock_settimetime.hintclockid_tconst struct timespec*
17closeunistd.hintint
18closedirdirent.hintFAR DIR*
19connectsys/socket.hdefined(CONFIG_NET)intintFAR const struct sockaddr*socklen_t
20dupunistd.hintint
21dup2unistd.hintintint
22execnuttx/binfmt/binfmt.h!defined(CONFIG_BINFMT_DISABLE) && !defined(CONFIG_BUILD_KERNEL)intFAR const char *FAR char * const *FAR const struct symtab_s *int
23execvunistd.h!defined(CONFIG_BINFMT_DISABLE) && defined(CONFIG_LIBC_EXECFUNCS)intFAR const char *FAR char *const []|FAR char *const *
24exitstdlib.hvoidint
25fcntlfcntl.hintintint...
26fs_fdopennuttx/fs/fs.hCONFIG_NFILE_STREAMS > 0FAR struct file_struct*intintFAR struct tcb_s*
27fs_ioctlnuttx/fs/fs.hdefined(CONFIG_LIBC_IOCTL_VARIADIC)intintintunsigned long
28fstatsys/stat.hintintFAR struct stat*
29fstatfssys/statfs.hintintFAR struct statfs*
30fsyncunistd.h!defined(CONFIG_DISABLE_MOUNTPOINT)intint
31ftruncateunistd.h!defined(CONFIG_DISABLE_MOUNTPOINT)intintoff_t
32get_errnoerrno.h!defined(__DIRECT_ERRNO_ACCESS)int
33get_errno_ptrerrno.hdefined(__DIRECT_ERRNO_ACCESS)FAR int*
34getenvstdlib.h!defined(CONFIG_DISABLE_ENVIRON)FAR char*FAR const char*
35getgidunistd.hdefined(CONFIG_SCHED_USER_IDENTITY)gid_t
36getitimersys/time.h!defined(CONFIG_DISABLE_POSIX_TIMERS)intintFAR struct itimerval *
37getpeernamesys/socket.hdefined(CONFIG_NET)intintFAR struct sockaddr *FAR socklen_t *
38getpidunistd.hpid_t
39getrandomsys/random.hdefined(CONFIG_CRYPTO_RANDOM_POOL)voidFAR void*size_t
40getsocknamesys/socket.hdefined(CONFIG_NET)intintFAR struct sockaddr *FAR socklen_t *
41getsockoptsys/socket.hdefined(CONFIG_NET)intintintintFAR void*FAR socklen_t*
42getuidunistd.hdefined(CONFIG_SCHED_USER_IDENTITY)uid_t
43if_indextonamenet/if.hdefined(CONFIG_NETDEV_IFINDEX)FAR char *unsigned intFAR char *
44if_nametoindexnet/if.hdefined(CONFIG_NETDEV_IFINDEX)unsigned intFAR const char *
45insmodnuttx/module.hdefined(CONFIG_MODULE)FAR void *FAR const char *FAR const char *
46ioctlsys/ioctl.h!defined(CONFIG_LIBC_IOCTL_VARIADIC)intintintunsigned long
47killsignal.hintpid_tint
48linkunistd.hdefined(CONFIG_PSEUDOFS_SOFTLINKS)intFAR const char *FAR const char *
49listensys/socket.hdefined(CONFIG_NET)intintint
50lseekunistd.hoff_tintoff_tint
51mkdirsys/stat.h!defined(CONFIG_DISABLE_MOUNTPOINT)intFAR const char*mode_t
52mkfifo2nuttx/drivers/drivers.hdefined(CONFIG_PIPES) && CONFIG_DEV_FIFO_SIZE > 0intFAR const char*mode_tsize_t
53mmapsys/mman.hFAR void*FAR void*size_tintintintoff_t
54munmapsys/mman.hdefined(CONFIG_FS_RAMMAP)intFAR void *size_t
55modhandlenuttx/module.hdefined(CONFIG_MODULE)FAR void *FAR const char *
56mountsys/mount.h!defined(CONFIG_DISABLE_MOUNTPOINT) && defined(CONFIG_FS_READABLE)intconst char*const char*const char*unsigned longconst void*
57mq_closemqueue.h!defined(CONFIG_DISABLE_MQUEUE)intmqd_t
58mq_getattrmqueue.h!defined(CONFIG_DISABLE_MQUEUE)intmqd_tstruct mq_attr *
59mq_notifymqueue.h!defined(CONFIG_DISABLE_MQUEUE)intmqd_tconst struct sigevent*
60mq_openmqueue.h!defined(CONFIG_DISABLE_MQUEUE)mqd_tconst char*int...
61mq_receivemqueue.h!defined(CONFIG_DISABLE_MQUEUE)ssize_tmqd_tchar*size_tFAR unsigned int*
62mq_sendmqueue.h!defined(CONFIG_DISABLE_MQUEUE)intmqd_tconst char*size_tunsigned int
63mq_setattrmqueue.h!defined(CONFIG_DISABLE_MQUEUE)intmqd_tconst struct mq_attr *struct mq_attr *
64mq_timedreceivemqueue.h!defined(CONFIG_DISABLE_MQUEUE)ssize_tmqd_tchar*size_tFAR unsigned int*const struct timespec*
65mq_timedsendmqueue.h!defined(CONFIG_DISABLE_MQUEUE)intmqd_tconst char*size_tunsigned intconst struct timespec*
66mq_unlinkmqueue.h!defined(CONFIG_DISABLE_MQUEUE)intconst char*
67nx_task_spawnnuttx/spawn.hdefined(CONFIG_BUILD_PROTECTED)intFAR const struct spawn_syscall_parms_s *
68nx_vsyslognuttx/syslog/syslog.hintintFAR const IPTR char*FAR va_list*
69on_exitstdlib.hdefined(CONFIG_SCHED_ONEXIT)intCODE void (*)(int, FAR void *)FAR void *
70openfcntl.hintconst char*int...
71opendirdirent.hFAR DIR*FAR const char*
72pgallocnuttx/arch.hdefined(CONFIG_BUILD_KERNEL)uintptr_tuintptr_tunsigned int
73pipe2nuttx/drivers/drivers.hdefined(CONFIG_PIPES) && CONFIG_DEV_PIPE_SIZE > 0intint [2]|int*size_t
74pollpoll.hintFAR struct pollfd*nfds_tint
75ppollpoll.hintFAR struct pollfd*nfds_tFAR const struct timespec *FAR const sigset_t *
76prctlsys/prctl.hCONFIG_TASK_NAME_SIZE > 0intint...
77preadunistd.hssize_tintFAR void*size_toff_t
78pselectsys/select.hintintFAR fd_set*FAR fd_set*FAR fd_set*FAR const struct timespec *FAR const sigset_t *
79pwriteunistd.hssize_tintFAR const void*size_toff_t
80posix_spawnpspawn.h!defined(CONFIG_BINFMT_DISABLE) && defined(CONFIG_LIBC_EXECFUNCS) && defined(CONFIG_LIB_ENVPATH)intFAR pid_t *FAR const char *FAR const posix_spawn_file_actions_t *FAR const posix_spawnattr_t *FAR char *const []|FAR char *const *FAR char *const []|FAR char *const *
81posix_spawnspawn.h!defined(CONFIG_BINFMT_DISABLE) && defined(CONFIG_LIBC_EXECFUNCS) && !defined(CONFIG_LIB_ENVPATH)intFAR pid_t *FAR const char *FAR const posix_spawn_file_actions_t *FAR const posix_spawnattr_t *FAR char *const []|FAR char *const *FAR char *const []|FAR char *const *
82pthread_cancelpthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_t
83pthread_cleanup_poppthread.hdefined(CONFIG_PTHREAD_CLEANUP)voidint
84pthread_cleanup_pushpthread.hdefined(CONFIG_PTHREAD_CLEANUP)voidpthread_cleanup_tFAR void*
85pthread_cond_broadcastpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_cond_t*
86pthread_cond_signalpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_cond_t*
87pthread_cond_timedwaitpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_cond_t*FAR pthread_mutex_t*FAR const struct timespec*
88pthread_cond_waitpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_cond_t*FAR pthread_mutex_t*
89pthread_createpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_t*FAR const pthread_attr_t*pthread_startroutine_tpthread_addr_t
90pthread_detachpthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_t
91pthread_exitpthread.h!defined(CONFIG_DISABLE_PTHREAD)voidpthread_addr_t
92pthread_get_stackaddr_nppthread.h!defined(CONFIG_DISABLE_PTHREAD)void*pthread_t
93pthread_get_stacksize_nppthread.h!defined(CONFIG_DISABLE_PTHREAD)ssize_tpthread_t
94pthread_getaffinity_nppthread.h!defined(CONFIG_DISABLE_PTHREAD) && defined(CONFIG_SMP)intpthread_tsize_tFAR cpu_set_t*
95pthread_getschedparampthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_tFAR int*FAR struct sched_param*
96pthread_getspecificpthread.h!defined(CONFIG_DISABLE_PTHREAD)FAR void*pthread_key_t
97pthread_joinpthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_tFAR pthread_addr_t*
98pthread_key_createpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_key_t*CODE void (*)(FAR void*)
99pthread_key_deletepthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_key_t
100pthread_killpthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_tint
101pthread_mutex_destroypthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_mutex_t*
102pthread_mutex_initpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_mutex_t*FAR const pthread_mutexattr_t*
103pthread_mutex_timedlockpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_mutex_t*FAR const struct timespec*
104pthread_mutex_trylockpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_mutex_t*
105pthread_mutex_unlockpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_mutex_t*
106pthread_mutex_consistentpthread.h!defined(CONFIG_DISABLE_PTHREAD) && !defined(CONFIG_PTHREAD_MUTEX_UNSAFE)intFAR pthread_mutex_t*
107pthread_setaffinity_nppthread.h!defined(CONFIG_DISABLE_PTHREAD) && defined(CONFIG_SMP)intpthread_tsize_tFAR const cpu_set_t*
108pthread_setschedparampthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_tintFAR const struct sched_param*
109pthread_setschedpriopthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_tint
110pthread_setspecificpthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_key_tFAR const void*
111pthread_sigmaskpthread.h!defined(CONFIG_DISABLE_PTHREAD)intintFAR const sigset_t*FAR sigset_t*
112putenvstdlib.h!defined(CONFIG_DISABLE_ENVIRON)intFAR const char*
113readunistd.hssize_tintFAR void*size_t
114readdirdirent.hFAR struct dirent*FAR DIR*
115readlinkunistd.hdefined(CONFIG_PSEUDOFS_SOFTLINKS)ssize_tFAR const char *FAR char *size_t
116recvsys/socket.hdefined(CONFIG_NET)ssize_tintFAR void*size_tint
117recvfromsys/socket.hdefined(CONFIG_NET)ssize_tintFAR void*size_tintFAR struct sockaddr*FAR socklen_t*
118renamestdio.h!defined(CONFIG_DISABLE_MOUNTPOINT)intFAR const char*FAR const char*
119rewinddirdirent.hvoidFAR DIR*
120rmdirunistd.h!defined(CONFIG_DISABLE_MOUNTPOINT)intFAR const char*
121rmmodnuttx/module.hdefined(CONFIG_MODULE)intFAR void *
122sched_getcpusched.hdefined(CONFIG_SMP)int
123sched_getparamsched.hintpid_tstruct sched_param*
124sched_getschedulersched.hintpid_t
125sched_getstreamsnuttx/sched.hCONFIG_NFILE_STREAMS > 0FAR struct streamlist*
126sched_locksched.hint
127sched_lockcountsched.hint32_t
128sched_rr_get_intervalsched.hintpid_tstruct timespec*
129sched_setparamsched.hintpid_tconst struct sched_param*
130sched_setschedulersched.hintpid_tintconst struct sched_param*
131sched_unlocksched.hint
132sched_yieldsched.hint
133seekdirdirent.hvoidFAR DIR*off_t
134selectsys/select.hintintFAR fd_set*FAR fd_set*FAR fd_set*FAR struct timeval*
135sem_closesemaphore.hdefined(CONFIG_FS_NAMED_SEMAPHORES)intFAR sem_t*
136sem_destroysemaphore.hintFAR sem_t*
137sem_opensemaphore.hdefined(CONFIG_FS_NAMED_SEMAPHORES)FAR sem_t*FAR const char*int...
138sem_postsemaphore.hintFAR sem_t*
139sem_setprotocolnuttx/semaphore.hdefined(CONFIG_PRIORITY_INHERITANCE)intFAR sem_t*int
140sem_timedwaitsemaphore.hintFAR sem_t*FAR const struct timespec *
141sem_trywaitsemaphore.hintFAR sem_t*
142sem_unlinksemaphore.hdefined(CONFIG_FS_NAMED_SEMAPHORES)intFAR const char*
143sem_waitsemaphore.hintFAR sem_t*
144sendsys/socket.hdefined(CONFIG_NET)ssize_tintFAR const void*size_tint
145sendfilesys/sendfile.hdefined(CONFIG_NET_SENDFILE)ssize_tintintFAR off_t*size_t
146sendtosys/socket.hdefined(CONFIG_NET)ssize_tintFAR const void*size_tintFAR const struct sockaddr*socklen_t
147set_errnoerrno.h!defined(__DIRECT_ERRNO_ACCESS)voidint
148setenvstdlib.h!defined(CONFIG_DISABLE_ENVIRON)intFAR const char*FAR const char*int
149setgidunistd.hdefined(CONFIG_SCHED_USER_IDENTITY)intgid_t
150sethostnameunistd.hdefined(CONFIG_LIBC_NETDB)intFAR const char*size_t
151setitimersys/time.h!defined(CONFIG_DISABLE_POSIX_TIMERS)intintFAR const struct itimerval*FAR struct itimerval*
152setsockoptsys/socket.hdefined(CONFIG_NET)intintintintFAR const void*socklen_t
153setuidunistd.hdefined(CONFIG_SCHED_USER_IDENTITY)intuid_t
154shmatsys/shm.hdefined(CONFIG_MM_SHM)FAR void *intFAR const void *int
155shmctlsys/shm.hdefined(CONFIG_MM_SHM)intintintFAR struct shmid_ds *
156shmdtsys/shm.hdefined(CONFIG_MM_SHM)intFAR const void *
157shmgetsys/shm.hdefined(CONFIG_MM_SHM)intkey_tsize_tint
158sigactionsignal.hintintFAR const struct sigaction*FAR struct sigaction*
159sigpendingsignal.hintFAR sigset_t*
160sigprocmasksignal.hintintFAR const sigset_t*FAR sigset_t*
161sigqueuesignal.hintintintunion sigval|FAR void *|sival_ptr
162sigsuspendsignal.hintFAR const sigset_t*
163sigtimedwaitsignal.hintFAR const sigset_t*FAR struct siginfo*FAR const struct timespec*
164sigwaitinfosignal.hintFAR const sigset_t*FAR struct siginfo*
165socketsys/socket.hdefined(CONFIG_NET)intintintint
166statsys/stat.hintconst char*FAR struct stat*
167statfssys/statfs.hintFAR const char*FAR struct statfs*
168task_createsched.h!defined(CONFIG_BUILD_KERNEL)intFAR const char*intintmain_tFAR char * const []|FAR char * const *
169task_deletesched.hintpid_t
170task_restartsched.hintpid_t
171task_setcancelstatesched.hintintFAR int*
172task_setcanceltypesched.hdefined(CONFIG_CANCELLATION_POINTS)intintFAR int*
173task_testcancelpthread.hdefined(CONFIG_CANCELLATION_POINTS)void
174tcdraintermios.hdefined(CONFIG_SERIAL_TERMIOS)intint
175telldirdirent.hoff_tFAR DIR*
176timer_createtime.h!defined(CONFIG_DISABLE_POSIX_TIMERS)intclockid_tFAR struct sigevent*FAR timer_t*
177timer_deletetime.h!defined(CONFIG_DISABLE_POSIX_TIMERS)inttimer_t
178timer_getoverruntime.h!defined(CONFIG_DISABLE_POSIX_TIMERS)inttimer_t
179timer_gettimetime.h!defined(CONFIG_DISABLE_POSIX_TIMERS)inttimer_tFAR struct itimerspec *
180timer_settimetime.h!defined(CONFIG_DISABLE_POSIX_TIMERS)inttimer_tintFAR const struct itimerspec*FAR struct itimerspec*
181umount2sys/mount.h!defined(CONFIG_DISABLE_MOUNTPOINT)intFAR const char*unsigned int
182unamesys/utsname.hintFAR struct utsname*
183unlinkunistd.h!defined(CONFIG_DISABLE_MOUNTPOINT)intFAR const char*
184unsetenvstdlib.h!defined(CONFIG_DISABLE_ENVIRON)intconst char*
185up_assertassert.hvoidFAR const uint8_t*int
186vforkunistd.hdefined(CONFIG_SCHED_WAITPID) && defined(CONFIG_ARCH_HAVE_VFORK)pid_t
187waitsys/wait.hdefined(CONFIG_SCHED_WAITPID) && defined(CONFIG_SCHED_HAVE_PARENT)pid_tint*
188waitidsys/wait.hdefined(CONFIG_SCHED_WAITPID) && defined(CONFIG_SCHED_HAVE_PARENT)intidtype_tid_t FAR siginfo_t *int
189waitpidsys/wait.hdefined(CONFIG_SCHED_WAITPID)pid_tpid_tint*int
190writeunistd.hssize_tintFAR const void*size_t