I need to print out the following values on std-out:
-CPU Type and Model
-Kernel Version
-Amount of time since the system was last booted, in the form dd:hh:mm:ss
This is all on Ubuntu 8.04
I have looked through my Linux Kernel book but it is very vague about how I am supposed to discover these values...It mentions using the Header File include/linux/sched.h and then "in the source code file kernel/sched.c contains a declaration of the form:
struct task_struct * task[NR_TASKS] = { &init_task, };"
But there is no kernel/sched.c file that I can find to use in my program, and I am just quite lost on how to go about coding this program.
If anyone could help me out, point me in the right direction or anything, it would be very appreciated.
Thank you