Please keep him on Cc ---------- Forwarded message ---------- Date: Mon, 07 Jul 2003 16:22:35 +0300 From: r2 <r2@aucegypt.edu> To: sherif@aucegypt.edu, thunder7@aucegypt.edu, zealos@nl.linux.org Subject: big problems ----------module.c----------- #define __KERNEL__ #define MODULE #include <linux/module.h> #include <linux/sched.h> #include <linux/time.h> #define MODVERSIONS int init_module () { unsigned long time; do_gettimeofday (&xtime); time = time.tv_sec; printk ("%u" + time); return (0); } void cleanup_module () { } ----------module.c----------- the above code gives me segmentation fault...any idea why? r2 -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/