mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
Signals in NuttX serve two primary purposes:
1. Synchronization and wake-up:
Signals can be used to block threads on specific signal sets and later
wake them up by delivering the corresponding signals to those threads.
2. Asynchronous notification:
Signals can also be used to install callback handlers for specific signals, allowing threads to
asynchronously invoke those handlers when the signals are delivered.
This change introduces the ability to partially disable signal functionality: to disable only signal functions for
Asynchronous notification, keeping functions for Synchronization and wake-up.
This enables finer-grained control over signal usage while preserving existing behavior for supported use cases.
Co-authored-by: Guo Shichao guoshichao@xiaomi.com
Signed-off-by: Chengdong Wang wangchengdong@lixiang.com
30 KiB
30 KiB
| 1 | __assert | assert.h | void | FAR const char * | int | FAR const char * | |
|---|---|---|---|---|---|---|---|
| 2 | __cxa_atexit | stdlib.h | int | FAR CODE void (*)(FAR void *)|FAR void * | FAR void * | FAR void * | |
| 3 | aio_suspend | aio.h | defined(CONFIG_FS_AIO) | int | FAR const struct aiocb * const []|FAR const struct aiocb * const * | int | FAR const struct timespec * |
| 4 | asprintf | stdio.h | int | FAR char ** | FAR const IPTR char * | ... | |
| 5 | crc32part | nuttx/crc32.h | uint32_t | FAR const uint8_t * | size_t | uint32_t | |
| 6 | dq_addafter | nuttx/queue.h | void | FAR dq_entry_t * | FAR dq_entry_t * | FAR dq_queue_t * | |
| 7 | fgets | stdio.h | defined(CONFIG_FILE_STREAM) | FAR char * | FAR char * | int | FAR FILE * |
| 8 | fnmatch | fnmatch.h | int | FAR const char * | FAR const char * | int | |
| 9 | fprintf | stdio.h | defined(CONFIG_FILE_STREAM) | int | FAR FILE * | FAR const IPTR char * | ... |
| 10 | fscanf | stdio.h | int | FAR FILE * | FAR const char * | ... | |
| 11 | fseek | stdio.h | defined(CONFIG_FILE_STREAM) | int | FAR FILE * | long int | int |
| 12 | getopt | unistd.h | int | int | FAR char * const []|FAR char * const * | FAR const char * | |
| 13 | getrandom | sys/random.h | !defined(CONFIG_BUILD_KERNEL) | ssize_t | FAR void * | size_t | unsigned int |
| 14 | inet_pton | arpa/inet.h | int | int | FAR const char * | FAR void * | |
| 15 | lib_dumpbuffer | debug.h | void | FAR const char * | FAR const uint8_t * | unsigned int | |
| 16 | mbrlen | wchar.h | size_t | FAR const char * | size_t | FAR mbstate_t * | |
| 17 | mbstowcs | stdlib.h | size_t | FAR wchar_t * | FAR const char * | size_t | |
| 18 | mbtowc | stdlib.h | int | FAR wchar_t * | FAR const char * | size_t | |
| 19 | memchr | string.h | FAR void * | FAR const void * | int | size_t | |
| 20 | memcmp | string.h | int | FAR const void * | FAR const void * | size_t | |
| 21 | memcpy | string.h | FAR void * | FAR void * | FAR const void * | size_t | |
| 22 | memmove | string.h | FAR void * | FAR void * | FAR const void * | size_t | |
| 23 | memset | string.h | FAR void * | FAR void * | int | size_t | |
| 24 | posix_fallocate | fcntl.h | int | int | off_t | off_t | |
| 25 | posix_memalign | stdlib.h | int | FAR void ** | size_t | size_t | |
| 26 | pthread_barrier_init | pthread.h | !defined(CONFIG_DISABLE_PTHREAD) | int | FAR pthread_barrier_t * | FAR const pthread_barrierattr_t * | unsigned int |
| 27 | pthread_cond_timedwait | pthread.h | !defined(CONFIG_DISABLE_PTHREAD) | int | FAR pthread_cond_t * | FAR pthread_mutex_t * | FAR const struct timespec * |
| 28 | pthread_getname_np | pthread.h | !defined(CONFIG_DISABLE_PTHREAD) | int | pthread_t | char * | size_t |
| 29 | pthread_mutex_setprioceiling | pthread.h | !defined(CONFIG_DISABLE_PTHREAD) && defined(CONFIG_PRIORITY_PROTECT) | int | FAR pthread_mutex_t * | int | FAR int * |
| 30 | readdir_r | dirent.h | int | FAR DIR * | FAR struct dirent * | FAR struct dirent ** | |
| 31 | readv | sys/uio.h | ssize_t | int | FAR const struct iovec * | int | |
| 32 | sem_init | semaphore.h | int | FAR sem_t * | int | unsigned int | |
| 33 | setpriority | sys/resource.h | int | int | id_t | int | |
| 34 | sprintf | stdio.h | int | FAR char * | FAR const IPTR char * | ... | |
| 35 | sprintf | stdio.h | int | FAR char * | FAR const IPTR char * | ... | |
| 36 | sq_addafter | nuttx/queue.h | void | FAR sq_entry_t * | FAR sq_entry_t * | FAR sq_queue_t * | |
| 37 | sscanf | stdio.h | int | FAR const IPTR char * | FAR const char * | ... | |
| 38 | sscanf | stdio.h | int | FAR const char * | FAR const char * | ... | |
| 39 | strerror_r | string.h | int | int | FAR char * | size_t | |
| 40 | strlcpy | string.h | size_t | FAR char * | FAR const char * | size_t | |
| 41 | strncasecmp | strings.h | int | FAR const char * | FAR const char * | size_t | |
| 42 | strncat | string.h | FAR char * | FAR char * | FAR const char * | size_t | |
| 43 | strncmp | string.h | int | FAR const char * | FAR const char * | size_t | |
| 44 | strncpy | string.h | FAR char * | FAR char * | FAR const char * | size_t | |
| 45 | strtoimax | inttypes.h | intmax_t | FAR const char * | FAR char ** | int | |
| 46 | strtok_r | string.h | FAR char * | FAR char * | FAR const char * | FAR char ** | |
| 47 | strtol | stdlib.h | long | FAR const char * | FAR char ** | int | |
| 48 | strtoll | stdlib.h | defined(CONFIG_HAVE_LONG_LONG) | long long | FAR const char * | FAR char ** | int |
| 49 | strtoul | stdlib.h | unsigned long | FAR const char * | FAR char ** | int | |
| 50 | strtoull | stdlib.h | unsigned long long int | FAR const char * | FAR char ** | int | |
| 51 | strtoull | stdlib.h | defined(CONFIG_HAVE_LONG_LONG) | unsigned long long | FAR const char * | FAR char ** | int |
| 52 | strtoumax | inttypes.h | uintmax_t | FAR const char * | FAR char ** | int | |
| 53 | strxfrm | string.h | defined(CONFIG_LIBC_LOCALE) | size_t | FAR char * | FAR const char * | size_t |
| 54 | swab | unistd.h | void | FAR const void * | FAR void * | ssize_t | |
| 55 | syslog | syslog.h | void | int | FAR const IPTR char * | ... | |
| 56 | tcsetattr | termios.h | int | int | int | FAR const struct termios * | |
| 57 | vasprintf | stdio.h | int | FAR char ** | FAR const IPTR char * | va_list | |
| 58 | vfprintf | stdio.h | defined(CONFIG_FILE_STREAM) | int | FAR FILE * | FAR const IPTR char * | va_list |
| 59 | vsprintf | stdio.h | int | FAR char * | FAR const IPTR char * | va_list | |
| 60 | vsscanf | stdio.h | int | FAR const char * | FAR const IPTR char * | va_list | |
| 61 | vsyslog | syslog.h | void | int | FAR const IPTR char * | va_list | |
| 62 | wcrtomb | wchar.h | size_t | FAR char * | wchar_t | FAR mbstate_t * | |
| 63 | wcslcat | wchar.h | size_t | FAR wchar_t * | FAR const wchar_t * | size_t | |
| 64 | wcsncat | wchar.h | FAR wchar_t * | FAR wchar_t * | FAR const wchar_t * | size_t | |
| 65 | wcsncmp | wchar.h | int | FAR const wchar_t * | FAR const wchar_t * | size_t | |
| 66 | wcsncpy | wchar.h | FAR wchar_t * | FAR wchar_t * | FAR const wchar_t * | size_t | |
| 67 | wcslcpy | wchar.h | size_t | FAR wchar_t * | FAR const wchar_t * | size_t | |
| 68 | wcstok | wchar.h | FAR wchar_t * | FAR wchar_t * | FAR const wchar_t * | FAR wchar_t ** | |
| 69 | wcstol | wchar.h | long int | FAR const wchar_t * | FAR wchar_t ** | int | |
| 70 | wcstoll | wchar.h | long long int | FAR const wchar_t * | FAR wchar_t ** | int | |
| 71 | wcstombs | stdlib.h | size_t | FAR char * | FAR const wchar_t * | size_t | |
| 72 | wcstoul | wchar.h | unsigned long int | FAR const wchar_t * | FAR wchar_t ** | int | |
| 73 | wcsxfrm | wchar.h | size_t | FAR wchar_t * | FAR const wchar_t * | size_t | |
| 74 | wmemchr | wchar.h | FAR wchar_t * | FAR const wchar_t * | wchar_t | size_t | |
| 75 | wmemcmp | wchar.h | int | FAR const wchar_t * | FAR const wchar_t * | size_t | |
| 76 | wmemcpy | wchar.h | FAR wchat_t * | FAR wchar_t * | FAR const wchar_t * | size_t | |
| 77 | wmemmove | wchar.h | FAR wchat_t * | FAR wchar_t * | FAR const wchar_t * | size_t | |
| 78 | wmemset | wchar.h | FAR wchat_t * | FAR wchar_t * | wchar_t | size_t | |
| 79 | writev | sys/uio.h | ssize_t | int | FAR const struct iovec * | int |