2013-11-05 12:32:56 +04:00
|
|
|
#ifndef __CR_PROC_POSIX_TIMER_H__
|
|
|
|
#define __CR_PROC_POSIX_TIMER_H__
|
|
|
|
|
2013-11-06 17:21:09 +04:00
|
|
|
#include "list.h"
|
|
|
|
|
2013-11-05 12:32:56 +04:00
|
|
|
struct str_posix_timer {
|
|
|
|
long it_id;
|
|
|
|
int clock_id;
|
|
|
|
int si_signo;
|
|
|
|
int it_sigev_notify;
|
|
|
|
void * sival_ptr;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct proc_posix_timer {
|
|
|
|
struct list_head list;
|
|
|
|
struct str_posix_timer spt;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct proc_posix_timers_stat {
|
|
|
|
int timer_n;
|
|
|
|
struct list_head timers;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern int parse_posix_timers(pid_t pid, struct proc_posix_timers_stat * args);
|
2014-04-15 21:59:21 +04:00
|
|
|
void free_posix_timers(struct proc_posix_timers_stat *st);
|
2013-11-05 12:32:56 +04:00
|
|
|
|
2013-11-15 14:04:45 +04:00
|
|
|
#endif /* __CR_PROC_POSIX_TIMER_H__ */
|