struct sigaction act;
sigfillset(&act.sa_mask); /* Set up signal handler */
act.sa_flags = 0;
act.sa_handler = userfunction; //userfunction is set as the function to be + called when a signal event occures.
sigaction(signum, &act, NULL)
struct sigevent se;
se.sigev_notify = SIGEV_SIGNAL;
se.sigev_signo = signum;
se.sigev_value.sival_int = 0;
timer_create(CLOCK_REALTIME, &se, &timer_id)
Here the problem is when the timer fires, only the signum (by default)is available in the userfunction. Can i pass any other arguments other than that.
And also i'm able to use only SIGRTAX number of timers. ie 32 or 64.. but i want to use more than that...say 250 timers at a time
Originally Posted by klopfer
as i know sigevent is a structure, not a function.
Could you describe more clearly what you mean?