drivers/timers/timer.c: Support the signal notification through SIGEV_THREAD

This commit is contained in:
Gregory Nutt
2019-01-28 06:32:27 -06:00
parent b9c7a9a18f
commit 5a0f514615
2 changed files with 19 additions and 34 deletions
+3 -3
View File
@@ -45,6 +45,7 @@
#include <nuttx/compiler.h>
#include <nuttx/irq.h>
#include <nuttx/fs/ioctl.h>
#include <signal.h>
#include <stdbool.h>
#include <sys/types.h>
@@ -130,9 +131,8 @@ struct timer_status_s
struct timer_notify_s
{
FAR void *arg; /* An argument to pass with the signal */
pid_t pid; /* The ID of the task/thread to receive the signal */
uint8_t signo; /* The signal number to use in the notification */
struct sigevent event; /* Describe the way a task is to be notified */
pid_t pid; /* The ID of the task/thread to receive the signal */
};
/* This structure provides the "lower-half" driver operations available to