sched/signals: improvements for when all signals are disabled#17991
Open
wangchdo wants to merge 12 commits intoapache:masterfrom
Open
sched/signals: improvements for when all signals are disabled#17991wangchdo wants to merge 12 commits intoapache:masterfrom
wangchdo wants to merge 12 commits intoapache:masterfrom
Conversation
c53b84a to
6b46448
Compare
xiaoxiang781216
previously approved these changes
Jan 18, 2026
6b46448 to
a1c1f12
Compare
fb52bef to
286d12b
Compare
| /* Have any signal events occurred? */ | ||
|
|
||
| #ifndef CONFIG_DISABLE_ALL_SIGNALS | ||
| if ((press & opriv->bo_notify.bn_press) != 0 || |
Contributor
There was a problem hiding this comment.
nee d remove from btn_open_s
| /* Have any signal events occurred? */ | ||
|
|
||
| #ifndef CONFIG_DISABLE_ALL_SIGNALS | ||
| if ((press & opriv->do_notify.dn_press) != 0 || |
Contributor
There was a problem hiding this comment.
need remove from djoy_open_s
| @@ -271,6 +276,7 @@ static void ft80x_notify(FAR struct ft80x_dev_s *priv, | |||
| info->event.sigev_value.sival_int = value; | |||
Contributor
There was a problem hiding this comment.
need guard event in ft80x_dev_s
| #ifndef CONFIG_DISABLE_ALL_SIGNALS | ||
| if (priv->md_notify_registered) | ||
| { | ||
| priv->md_notify_event.sigev_value.sival_int = primitive->type; |
Contributor
There was a problem hiding this comment.
guard md_notify_event in mac802154_chardevice_s
| else | ||
| { | ||
| status = nxsig_notification(_SCHED_GETPID(), sig, | ||
| SI_ASYNCIO, &aiocbp->aio_sigwork); |
| @@ -210,6 +210,11 @@ | |||
| static int lio_sigsetup(FAR struct aiocb * const *list, int nent, | |||
Contributor
There was a problem hiding this comment.
does aio still work without signal? if not, we should diasable all aio functionality.
| { | ||
| /* Save the notification events */ | ||
|
|
||
| opriv->ao_notify.an_mount = notify->an_mount; |
Contributor
There was a problem hiding this comment.
does automount functionality still work
| #ifndef CONFIG_DISABLE_ALL_SIGNALS | ||
| if (priv->xd_notify_registered) | ||
| { | ||
| priv->xd_notify_event.sigev_value.sival_int = primitive->type; |
Contributor
There was a problem hiding this comment.
guard in xbeenet_driver_s too
When all signals are disabled, remove the altmdm_timer-related implementation and API definitions. Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
When all signals are disabled, nxsig_notification is not available and should not be invoked. Remove the call to avoid build and runtime issues in no-signal configurations. Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
DEV_GPIO_NSIGNALS relies on signal support. Add an explicit Kconfig dependency on SIGNALS to prevent invalid no-signal configurations. Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
When all signals are disabled, nxsig_notification is not available and should not be invoked. Remove the call to avoid build and runtime issues in no-signal configurations. Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
update sleep and usleep to use nxsched_nanosleep wihen all signals are disabled Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
When all signals are disabled, nxsig_notification is not available and should not be invoked. Remove the call to avoid build and runtime issues in no-signal configurations. Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
…abled When all signals are disabled, nxsig_notification is not available and should not be invoked. Remove the call to avoid build and runtime issues in no-signal configurations. Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
…bled When all signals are disabled, nxsig_notification is not available and should not be invoked. Remove the call to avoid build and runtime issues in no-signal configurations. Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
When all signals are disabled, nxsig_notification is not available and should not be invoked. Remove the call to avoid build and runtime issues in no-signal configurations. Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
When all signals are disabled, nxsig_notification is not available and should not be invoked. Remove the call to avoid build and runtime issues in no-signal configurations. Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
When all signals are disabled, nxsig_notification is not available and should not be invoked. Remove the call to avoid build and runtime issues in no-signal configurations. Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
… disabled When all signals are disabled, nxsig_notification is not available and should not be invoked. Remove the call to avoid build and runtime issues in no-signal configurations. Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
286d12b to
5cbc6fd
Compare
jerpelea
approved these changes
Feb 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
THis PR includes below three updates:
sleep()andusleep()to usenxsched_nanosleep()when all signals are disabled, so when all signals are disabled, sleep function can still be available and ostest can passpthread_kill()andpthread_sigmask()implementations when all signals are disabled, since these two functions rely on signalsImpact
Improve the implementation when all signals are disabled, only impact the functions when all signals are disabled.
Testing
ostest for when all signals are disabled depends on apache/nuttx-apps#3333
ostest passed on rv-virt:smp64