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

do_gettimeofday() system crash



Hi,

I insmod a kernel module which calls do_gettimeofday in the following way:

struct timeval *timecount;

do_gettimeofday(timecount);

This causes a segmentation fault with the following error repeated on the screen: 
VFS: Disk change detected on device ide1(22,0).

Does anyone know what happened?

I do know that it is the do_gettimeofday that is causing the crash..without the line, the module loads and unloads fine.

Any help is much appreciated.

Oliver.

Dept. of Physics,
National University of Ireland, Galway,
Galway,
Ireland.

Tel: +353 (0)91 524411 ext. 2716
Fax: +353 (0)91 750584
-
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/