aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/posix-timers.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2006-01-09 23:52:27 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-10 11:01:36 -0500
commita924b04ddea9788e09f387fe19ccbede5f09ddd8 (patch)
treeaa519a2427b7686d35ceae764d3e37d69a6ae5e8 /include/linux/posix-timers.h
parent57a558757bdbb877b54ed5ea15bd0892e02a707d (diff)
[PATCH] hrtimer: make clockid_t arguments const
add const arguments to the posix-timers.h API functions Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/posix-timers.h')
-rw-r--r--include/linux/posix-timers.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/include/linux/posix-timers.h b/include/linux/posix-timers.h
index f942e2bad8e3..ecda38e07899 100644
--- a/include/linux/posix-timers.h
+++ b/include/linux/posix-timers.h
@@ -72,12 +72,12 @@ struct k_clock_abs {
72}; 72};
73struct k_clock { 73struct k_clock {
74 int res; /* in nano seconds */ 74 int res; /* in nano seconds */
75 int (*clock_getres) (clockid_t which_clock, struct timespec *tp); 75 int (*clock_getres) (const clockid_t which_clock, struct timespec *tp);
76 struct k_clock_abs *abs_struct; 76 struct k_clock_abs *abs_struct;
77 int (*clock_set) (clockid_t which_clock, struct timespec * tp); 77 int (*clock_set) (const clockid_t which_clock, struct timespec * tp);
78 int (*clock_get) (clockid_t which_clock, struct timespec * tp); 78 int (*clock_get) (const clockid_t which_clock, struct timespec * tp);
79 int (*timer_create) (struct k_itimer *timer); 79 int (*timer_create) (struct k_itimer *timer);
80 int (*nsleep) (clockid_t which_clock, int flags, struct timespec *); 80 int (*nsleep) (const clockid_t which_clock, int flags, struct timespec *);
81 int (*timer_set) (struct k_itimer * timr, int flags, 81 int (*timer_set) (struct k_itimer * timr, int flags,
82 struct itimerspec * new_setting, 82 struct itimerspec * new_setting,
83 struct itimerspec * old_setting); 83 struct itimerspec * old_setting);
@@ -87,12 +87,12 @@ struct k_clock {
87 struct itimerspec * cur_setting); 87 struct itimerspec * cur_setting);
88}; 88};
89 89
90void register_posix_clock(clockid_t clock_id, struct k_clock *new_clock); 90void register_posix_clock(const clockid_t clock_id, struct k_clock *new_clock);
91 91
92/* Error handlers for timer_create, nanosleep and settime */ 92/* Error handlers for timer_create, nanosleep and settime */
93int do_posix_clock_notimer_create(struct k_itimer *timer); 93int do_posix_clock_notimer_create(struct k_itimer *timer);
94int do_posix_clock_nonanosleep(clockid_t, int flags, struct timespec *); 94int do_posix_clock_nonanosleep(const clockid_t, int flags, struct timespec *);
95int do_posix_clock_nosettime(clockid_t, struct timespec *tp); 95int do_posix_clock_nosettime(const clockid_t, struct timespec *tp);
96 96
97/* function to call to trigger timer event */ 97/* function to call to trigger timer event */
98int posix_timer_event(struct k_itimer *timr, int si_private); 98int posix_timer_event(struct k_itimer *timr, int si_private);
@@ -117,11 +117,11 @@ struct now_struct {
117 } \ 117 } \
118 }while (0) 118 }while (0)
119 119
120int posix_cpu_clock_getres(clockid_t which_clock, struct timespec *); 120int posix_cpu_clock_getres(const clockid_t which_clock, struct timespec *);
121int posix_cpu_clock_get(clockid_t which_clock, struct timespec *); 121int posix_cpu_clock_get(const clockid_t which_clock, struct timespec *);
122int posix_cpu_clock_set(clockid_t which_clock, const struct timespec *tp); 122int posix_cpu_clock_set(const clockid_t which_clock, const struct timespec *tp);
123int posix_cpu_timer_create(struct k_itimer *); 123int posix_cpu_timer_create(struct k_itimer *);
124int posix_cpu_nsleep(clockid_t, int, struct timespec *); 124int posix_cpu_nsleep(const clockid_t, int, struct timespec *);
125int posix_cpu_timer_set(struct k_itimer *, int, 125int posix_cpu_timer_set(struct k_itimer *, int,
126 struct itimerspec *, struct itimerspec *); 126 struct itimerspec *, struct itimerspec *);
127int posix_cpu_timer_del(struct k_itimer *); 127int posix_cpu_timer_del(struct k_itimer *);