mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
sched/signal and related changes to other OS subsystems.
This commit is contained in:
@@ -122,6 +122,7 @@ struct mac802154_chardevice_s
|
||||
bool md_notify_registered;
|
||||
pid_t md_notify_pid;
|
||||
struct sigevent md_notify_event;
|
||||
struct sigwork_s md_notify_work;
|
||||
|
||||
#endif
|
||||
};
|
||||
@@ -768,7 +769,7 @@ static int mac802154dev_notify(FAR struct mac802154_maccb_s *maccb,
|
||||
{
|
||||
dev->md_notify_event.sigev_value.sival_int = primitive->type;
|
||||
nxsig_notification(dev->md_notify_pid, &dev->md_notify_event,
|
||||
SI_QUEUE);
|
||||
SI_QUEUE, &dev->md_notify_work);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -165,6 +165,7 @@ struct macnet_driver_s
|
||||
bool md_notify_registered;
|
||||
pid_t md_notify_pid;
|
||||
struct sigevent md_notify_event;
|
||||
struct sigwork_s md_notify_work;
|
||||
#endif
|
||||
};
|
||||
|
||||
@@ -446,7 +447,7 @@ static int macnet_notify(FAR struct mac802154_maccb_s *maccb,
|
||||
{
|
||||
priv->md_notify_event.sigev_value.sival_int = primitive->type;
|
||||
nxsig_notification(priv->md_notify_pid, &priv->md_notify_event,
|
||||
SI_QUEUE);
|
||||
SI_QUEUE, &priv->md_notify_work);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user