[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do_gettimeofday() system crash



On Tue, Jul 17, 2001 at 03:43:26PM +0100, Oliver Ryan wrote:

> I insmod a kernel module which calls do_gettimeofday in the following way:
> struct timeval *timecount;
> do_gettimeofday(timecount);
you'd use it as follows:


static struct timeval timecount;
...
do_gettimeofday(&timecount);

That's obvious, and now you should be reading '(Unix|Linux)+ and C'
book instead of writing kernel modules.


-- 
Drop that pickle!
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/