All of lore.kernel.org
 help / color / mirror / Atom feed
[parent not found: <BFECAF9E178F144FAEF2BF4CE739C66802FA3913@exmail1.se.axis.com>]
* Accessing monotonic clock from modules
@ 2005-06-02  6:36 Mikael Starvik
  2005-06-02  7:29 ` Arjan van de Ven
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Mikael Starvik @ 2005-06-02  6:36 UTC (permalink / raw)
  To: linux-kernel

We would like to get the posix monotonic clock from a loadable module.
Would a patch to make do_posix_clock_monotonic_gettime exported ok or
should we do it in some other way?

/Mikael

Here is such a patch (against 2.6.11):

Index: posix-timers.c
===================================================================
RCS file: /usr/local/cvs/linux/os/linux-2.6/kernel/posix-timers.c,v
retrieving revision 1.1.1.13
diff -u -r1.1.1.13 posix-timers.c
--- posix-timers.c	3 Mar 2005 08:53:02 -0000	1.1.1.13
+++ posix-timers.c	2 Jun 2005 06:35:30 -0000
@@ -35,6 +35,7 @@
 #include <linux/interrupt.h>
 #include <linux/slab.h>
 #include <linux/time.h>
+#include <linux/module.h>
 
 #include <asm/uaccess.h>
 #include <asm/semaphore.h>
@@ -191,6 +192,8 @@
 int do_posix_clock_monotonic_gettime(struct timespec *tp);
 static struct k_itimer *lock_timer(timer_t timer_id, unsigned long *flags);
 
+EXPORT_SYMBOL(do_posix_clock_monotonic_gettime);
+
 static inline void unlock_timer(struct k_itimer *timr, unsigned long flags)
 {
 	spin_unlock_irqrestore(&timr->it_lock, flags);


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2005-06-04 21:48 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <BFECAF9E178F144FAEF2BF4CE739C66802FA37AC@exmail1.se.axis.com>
2005-06-02 10:57 ` Accessing monotonic clock from modules Mikael Starvik
2005-06-02 11:15   ` Arjan van de Ven
     [not found] <BFECAF9E178F144FAEF2BF4CE739C66802FA3913@exmail1.se.axis.com>
2005-06-02 12:40 ` Mikael Starvik
2005-06-02  6:36 Mikael Starvik
2005-06-02  7:29 ` Arjan van de Ven
2005-06-02  7:30 ` Arjan van de Ven
2005-06-02  7:40   ` Robert Love
2005-06-02  7:48     ` Arjan van de Ven
2005-06-02  7:52       ` Robert Love
2005-06-02  7:56         ` Arjan van de Ven
2005-06-02 13:46           ` Chris Friesen
2005-06-02 13:48             ` Arjan van de Ven
2005-06-02 14:21               ` Chris Friesen
2005-06-04  3:27                 ` Lee Revell
2005-06-04 21:48                 ` Lee Revell
2005-06-03  0:14 ` Gerald Britton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.